OSDN Git Service
(root)
/
android-x86
/
bootable-newinstaller.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
347a825
)
init: avoid finding system partition too aggressive
author
Chih-Wei Huang
<cwhuang@linux.org.tw>
Mon, 2 Dec 2019 10:48:00 +0000
(18:48 +0800)
committer
Chih-Wei Huang
<cwhuang@linux.org.tw>
Mon, 2 Dec 2019 10:48:00 +0000
(18:48 +0800)
If SRC is specified, do not use a system-like partition. This avoids
misuse.
initrd/init
patch
|
blob
|
history
diff --git
a/initrd/init
b/initrd/init
index
8da4565
..
df1949f
100755
(executable)
--- a/
initrd/init
+++ b/
initrd/init
@@
-114,7
+114,7
@@
check_root()
elif [ -d /mnt/$SRC/system ]; then
remount_rw
mount --bind /mnt/$SRC/system system
- elif [ -e /mnt/build.prop ]; then
+ elif [ -
z "$SRC" -a -
e /mnt/build.prop ]; then
mount --bind /mnt system
else
rm -rf *