summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorosm0sis <osm0sis@outlook.com>2020-02-18 12:48:52 -0400
committerosm0sis <osm0sis@outlook.com>2020-02-18 12:48:52 -0400
commitc92c8c6972139c156016f145d5e9b9b4f8d5d885 (patch)
tree403e510bdedf8d57089028313ac8365c0a3f35dc
parent3f6d11247201ef98483dbc9f36c1dc59820c8979 (diff)
Backend: don't do remounts for pushing modules in addon.d-v2
-rwxr-xr-xMETA-INF/com/google/android/update-binary12
1 files changed, 8 insertions, 4 deletions
diff --git a/META-INF/com/google/android/update-binary b/META-INF/com/google/android/update-binary
index ad1cb8e..159e4c2 100755
--- a/META-INF/com/google/android/update-binary
+++ b/META-INF/com/google/android/update-binary
@@ -325,8 +325,10 @@ do_modules() {
else
cd $AKHOME/modules;
ui_print " " "Pushing modules...";
- $BB mount -o rw,remount -t auto /system;
- $BB mount -o rw,remount -t auto /vendor 2>/dev/null;
+ if [ ! -d /postinstall/tmp ]; then
+ $BB mount -o rw,remount -t auto /system;
+ $BB mount -o rw,remount -t auto /vendor 2>/dev/null;
+ fi;
for module in $(find . -name '*.ko'); do
modtarget=$POSTINSTALL$(echo $module | $BB cut -c2-);
if [ ! -e $modtarget ]; then
@@ -349,8 +351,10 @@ do_modules() {
$BB mount -o ro,remount -t auto $modtarget;
fi;
done;
- $BB mount -o ro,remount -t auto /system;
- $BB mount -o ro,remount -t auto /vendor 2>/dev/null;
+ if [ ! -d /postinstall/tmp ]; then
+ $BB mount -o ro,remount -t auto /system;
+ $BB mount -o ro,remount -t auto /vendor 2>/dev/null;
+ fi;
fi;
cd $AKHOME;
}