Backend: support for upcoming recovery addon.d-v2

- for FlashAfterUpdate addon.d-v2 support while in recovery
- recovery addon.d-v2 requires /system and /system_root stay mounted
This commit is contained in:
osm0sis committed 2020-02-04 16:09:00 -04:00
1 parent 6bc4d96d3d
commit dfcfb87e6e
1 file changed
+8 -6
+8 -6
View File
@@ -32,7 +32,7 @@ setup_mountpoint() {
test -L $1 && $BB mv -f $1 ${1}_link;
if [ ! -d $1 ]; then
rm -f $1;
mkdir $1;
mkdir -p $1;
fi;
}
is_mounted() { $BB mount | $BB grep -q " $1 "; }
@@ -125,11 +125,13 @@ mount_all() {
umount_all() {
(if ! $BOOTMODE; then
umount_apex;
$BB umount /system;
$BB umount -l /system;
if [ -e /system_root ]; then
$BB umount /system_root;
$BB umount -l /system_root;
if [ ! -d /postinstall/tmp ]; then
$BB umount /system;
$BB umount -l /system;
if [ -e /system_root ]; then
$BB umount /system_root;
$BB umount -l /system_root;
fi;
fi;
fi;
umount /vendor;