Backend: underps and regression fixes

- fallback by-name system mount may still result in /system at /system_root so add back check
- add missing /persist mountpoint
This commit is contained in:
osm0sis committed 2021-09-15 00:02:22 -03:00
1 parent 84caeb46e5
commit f88f90e3d2
2 files changed
+5 -4

No files matched your search

+4 -3
View File
@@ -144,19 +144,20 @@ mount_all() {
fi;
;;
esac;
[ -f /system_root/system/build.prop ] && system=/system;
for mount in /vendor /product /system_ext; do
if ! is_mounted $mount && [ -L /system$mount -o -L /system_root$mount ]; then
if ! is_mounted $mount && [ -L /system$mount -o -L /system_root$system$mount ]; then
setup_mountpoint $mount;
$BB mount -o ro -t auto /dev/block/$byname$mount$slot $mount;
fi;
done;
if is_mounted /system_root; then
mount_apex;
$BB mount -o bind /system_root /system;
$BB mount -o bind /system_root$system /system;
fi;
if ! is_mounted /persist && [ -e /dev/block/bootdevice/by-name/persist ]; then
setup_mountpoint /persist;
$BB mount -o ro -t auto /dev/block/bootdevice/by-name/persist;
$BB mount -o ro -t auto /dev/block/bootdevice/by-name/persist /persist;
fi;
}
umount_all() {