From 885eae94b3a7108add93b7c20dd60fed98a0ff22 Mon Sep 17 00:00:00 2001 From: Paul Keith Date: Thu, 17 May 2018 03:05:54 +0200 Subject: [PATCH] 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 --- build/meta/com/google/android/update-binary | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build/meta/com/google/android/update-binary b/build/meta/com/google/android/update-binary index 042c90a..7befe87 100644 --- a/build/meta/com/google/android/update-binary +++ b/build/meta/com/google/android/update-binary @@ -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