OSDN Git Service

Merge remote-tracking branch 'x86/oreo-x86' into pie-x86
[android-x86/bootable-newinstaller.git] / initrd / init
index 868ddde..d6095e8 100755 (executable)
@@ -113,10 +113,10 @@ check_root()
        elif [ -e /mnt/$SRC/system.img ]; then
                remount_rw
                mount -o loop,noatime /mnt/$SRC/system.img system
-       elif [ -d /mnt/$SRC/system ]; then
+       elif [ -s /mnt/$SRC/system/build.prop ]; then
                remount_rw
                mount --bind /mnt/$SRC/system system
-       elif [ -z "$SRC" -a -e /mnt/build.prop ]; then
+       elif [ -z "$SRC" -a -s /mnt/build.prop ]; then
                mount --bind /mnt system
        else
                rm -rf *