Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
Magisk
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Magisk
Commits
0ed524f1
Commit
0ed524f1
authored
Jul 21, 2020
by
classic-gentleman
Committed by
John Wu
Jul 24, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test for NVIDIA/Tegra partition naming scheme first
Fixes
https://github.com/topjohnwu/Magisk/issues/3014
parent
aed3ab99
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
mount.cpp
native/jni/init/mount.cpp
+3
-3
No files found.
native/jni/init/mount.cpp
View file @
0ed524f1
...
@@ -243,12 +243,12 @@ void SARBase::backup_files() {
...
@@ -243,12 +243,12 @@ void SARBase::backup_files() {
void
SARBase
::
mount_system_root
()
{
void
SARBase
::
mount_system_root
()
{
LOGD
(
"Early mount system_root
\n
"
);
LOGD
(
"Early mount system_root
\n
"
);
sprintf
(
blk_info
.
partname
,
"system%s"
,
cmd
->
slot
);
// Try NVIDIA naming scheme
strcpy
(
blk_info
.
partname
,
"APP"
);
strcpy
(
blk_info
.
block_dev
,
"/dev/root"
);
strcpy
(
blk_info
.
block_dev
,
"/dev/root"
);
auto
dev
=
setup_block
(
false
);
auto
dev
=
setup_block
(
false
);
if
(
dev
<
0
)
{
if
(
dev
<
0
)
{
// Try NVIDIA naming scheme
sprintf
(
blk_info
.
partname
,
"system%s"
,
cmd
->
slot
);
strcpy
(
blk_info
.
partname
,
"APP"
);
dev
=
setup_block
(
false
);
dev
=
setup_block
(
false
);
if
(
dev
<
0
)
{
if
(
dev
<
0
)
{
// We don't really know what to do at this point...
// We don't really know what to do at this point...
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment