2
0
mirror of https://gitlab.com/Nanolx/NanoDroid synced 2024-11-02 03:40:13 +00:00

improve A/B support

This commit is contained in:
Christopher Roy Bratusek 2018-03-07 20:20:21 +01:00
parent ae00722ca9
commit 1a73733155

View File

@ -145,6 +145,12 @@ mount_partitions () {
mount -t ext4 -o ro $SYSTEMBLOCK /system mount -t ext4 -o ro $SYSTEMBLOCK /system
fi fi
if [ -f /system/init.rc ]; then
mkdir /system_root 2>/dev/null
mount --move /system /system_root
mount -o bind /system_root/system /system
fi
[ ! -f /system/build.prop ] && error "failed to mount /system" [ ! -f /system/build.prop ] && error "failed to mount /system"
} }