Backend: add logical partition block mapper rw support
Thanks LuK1337 & erfanoabdi @ Lineage
This commit is contained in:
1 file changed
+8
-1
@@ -308,7 +308,7 @@ EOF
|
||||
}
|
||||
do_modules() {
|
||||
test "$(file_getprop anykernel.sh do.modules)" == 1 || return 1;
|
||||
local modcon moddir modtarget module umask;
|
||||
local block modcon moddir modtarget module slot umask;
|
||||
if [ "$(file_getprop anykernel.sh do.systemless)" == 1 ]; then
|
||||
cd $AKHOME/modules;
|
||||
ui_print " " "Creating kernel helper Magisk module...";
|
||||
@@ -331,6 +331,13 @@ do_modules() {
|
||||
else
|
||||
cd $AKHOME/modules;
|
||||
ui_print " " "Pushing modules...";
|
||||
if [ -d /dev/block/mapper ]; then
|
||||
for block in system vendor; do
|
||||
for slot in "" _a _b; do
|
||||
$BB blockdev --setrw /dev/block/mapper/$block$slot 2>/dev/null;
|
||||
done;
|
||||
done;
|
||||
fi;
|
||||
if [ ! -d /postinstall/tmp ]; then
|
||||
$BB mount -o rw,remount -t auto /system;
|
||||
$BB mount -o rw,remount -t auto /vendor 2>/dev/null;
|
||||
|
||||
Reference in new issue
Block a user