gapps: Unmount /system before attempting to mount it
* On some devices, /system is already mounted, and when we try to mount it ourselves, it fails, causing installation to abort * To prevent this, umount /system before we try to mount it
This commit is contained in:
parent
2f19736850
commit
885eae94b3
@ -33,6 +33,9 @@ SYSTEMASROOT=`getprop ro.build.system_root_image`
|
||||
|
||||
ui_print "Mounting system partition"
|
||||
|
||||
# Ensure system is unmounted so mounting succeeds
|
||||
umount /system || true
|
||||
|
||||
if [ "$SYSTEMASROOT" == "true" ]; then
|
||||
CURRENTSLOT=`getprop ro.boot.slot_suffix`
|
||||
if [ ! -z "$CURRENTSLOT" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user