Backend: don't do remounts for pushing modules in addon.d-v2

This commit is contained in:
osm0sis committed 2020-02-18 12:48:52 -04:00
1 parent 3f6d112472
commit c92c8c6972
1 file changed
+8 -4
+8 -4
View File
@@ -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;
}