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:
parent
ae00722ca9
commit
1a73733155
@ -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"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user