src: Add support for system mountpoint /mnt/system/system

This commit is contained in:
FriendlyNeighborhoodShane 2020-09-11 14:14:18 +05:30
parent e4ab5614d0
commit 316fdd2312

View File

@ -69,10 +69,12 @@ log "Bootmode is $bootmode";
$bootmode || {
[ -e "/system" ] && mount -o ro /system;
[ -e "/system_root" ] && mount -o ro /system_root;
[ -e "/mnt/system" ] && mount -o ro /mnt/system;
mount /data;
}
[ -e "/system/system/build.prop" ] && sysroot="system";
[ -e "/system_root/system/build.prop" ] && sysroot="system_root";
[ -e "/mnt/system/system/build.prop" ] && sysroot="mnt/system";
[ -f "/$sysroot/system/build.prop" ] || abort "Could not find a ROM in /$sysroot";
bbdir="/tmp/busybox";