Unverified Commit ab9442d4 authored by Alessandro Astone's avatar Alessandro Astone Committed by GitHub

Fixup mounting system on Lineage Recovery

 * Lineage Recovery 17.1, like AOSP Q recovery, has '/' as a shared
   mount point, causing `mount --move` to fail.
   If it fails, directly mount system to /system_root via
   /dev/block/ symlinks, like AnyKernel and OpenGapps
Co-authored-by: 's avatarJohn Wu <topjohnwu@gmail.com>
parent f5c099e9
......@@ -217,7 +217,11 @@ mount_partitions() {
if [ -f /system/init.rc ]; then
SYSTEM_ROOT=true
setup_mntpoint /system_root
mount --move /system /system_root
if ! mount --move /system /system_root; then
umount /system
umount -l /system 2>/dev/null
mount_ro_ensure "system$SLOT app$SLOT" /system_root
fi
mount -o bind /system_root/system /system
else
grep ' / ' /proc/mounts | grep -qv 'rootfs' || grep -q ' /system_root ' /proc/mounts \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment