Просмотр исходного кода

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
Paul Keith 7 лет назад
Родитель
Сommit
885eae94b3
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      build/meta/com/google/android/update-binary

+ 3 - 0
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