Backend: check before mounts, fix persist mount on Virtual A/B

This commit is contained in:
osm0sis committed 2021-09-11 00:05:52 -03:00
1 parent d705b13c45
commit 4dfc45a6b2
2 files changed
+8 -3

No files matched your search

+6 -2
View File
@@ -147,12 +147,16 @@ mount_all() {
if is_mounted /system_root; then
mount_apex;
[ -f /system_root/system/build.prop ] && system=/system;
for mount in /vendor /product /system_ext /persist; do
if [ -L /system_root$system$mount ]; then
for mount in /vendor /product /system_ext; do
if ! is_mounted $mount && [ -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 /persist && [ -e /dev/block/bootdevice/by-name/persist ]; then
setup_mountpoint /persist;
$BB mount -o ro -t auto /dev/block/bootdevice/by-name/persist;
fi;
$BB mount -o bind /system_root$system /system;
fi;
}
+2 -1
View File
@@ -2,4 +2,5 @@
#
# Dummy file; update-binary is a shell script (DO NOT CHANGE)
#
# AK_BASE_VERSION=20210910
#
# AK_BASE_VERSION=20210911