bootable/newinstaller
Revision | 6b5590f8d9998978c63a23e4cc0ca0af2b814605 (tree) |
---|---|
Time | 2020-03-13 12:36:21 |
Author | Chih-Wei Huang <cwhuang@linu...> |
Commiter | Chih-Wei Huang |
init: avoid finding system dir too aggressive
Only use a system dir if it contains build.prop.
@@ -110,10 +110,10 @@ check_root() | ||
110 | 110 | elif [ -e /mnt/$SRC/system.img ]; then |
111 | 111 | remount_rw |
112 | 112 | mount -o loop,noatime /mnt/$SRC/system.img system |
113 | - elif [ -d /mnt/$SRC/system ]; then | |
113 | + elif [ -s /mnt/$SRC/system/build.prop ]; then | |
114 | 114 | remount_rw |
115 | 115 | mount --bind /mnt/$SRC/system system |
116 | - elif [ -z "$SRC" -a -e /mnt/build.prop ]; then | |
116 | + elif [ -z "$SRC" -a -s /mnt/build.prop ]; then | |
117 | 117 | mount --bind /mnt system |
118 | 118 | else |
119 | 119 | rm -rf * |