Backend: ensure /system_root umount even if /system is a symlink

This commit is contained in:
osm0sis committed 2019-08-06 20:10:53 -03:00
1 parent 950b68a1d7
commit 146c834d0f
1 file changed
+1 -1
+1 -1
View File
@@ -45,7 +45,7 @@ debugging() {
is_mounted() { $bb mount | $bb grep -q " $1 "; }
unmount_all() {
($bb umount /system;
if [ -e /system_root -a ! -f /system/build.prop ]; then
if [ -e /system_root ] && [ ! -f /system/build.prop -o -L /system ]; then
$bb umount /system_root;
fi;
$bb umount /system;