From a5b2ff0d5fe34507f85617adc7fbd445d72d2dff Mon Sep 17 00:00:00 2001 From: backslashxx <118538522+backslashxx@users.noreply.github.com> Date: Thu, 20 Nov 2025 18:01:12 +0800 Subject: [PATCH] scripts/metainstall: no-op handle_partition instead this is simpler Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com> --- template/metainstall.sh | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/template/metainstall.sh b/template/metainstall.sh index 04334b4..9e299ee 100644 --- a/template/metainstall.sh +++ b/template/metainstall.sh @@ -9,25 +9,13 @@ export KSU_METAMODULE="meta-mm" # Main installation flow ui_print "- Using meta-mm metainstall" -# undo_handle_partition -# because ksu moves them e.g. MODDIR/system/product to MODDIR/product -# this way we can support normal hierarchy that ksu breaks -undo_handle_partition() { - partition_to_undo="$1" - if [ -L "$MODPATH/system/$partition_to_undo" ] && [ -d "$MODPATH/$partition_to_undo" ]; then - # ui_print "- undo handle_partition for /$partition_to_undo" - rm -f "$MODPATH/system/$partition_to_undo" - mv -f "$MODPATH/$partition_to_undo" "$MODPATH/system/$partition_to_undo" - fi +# we no-op handle_partition +# this way we can support normal hierarchy that ksu changes +handle_partition() { + echo 0 > /dev/null ; true } # call install function, this is important! install_module -# Run for typical partitions -undo_handle_partition vendor -undo_handle_partition product -undo_handle_partition system_ext -undo_handle_partition odm - ui_print "- Installation complete"