scripts/metainstall: no-op handle_partition instead
this is simpler Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
This commit is contained in:
parent
3c9e3284de
commit
a5b2ff0d5f
1 changed files with 4 additions and 16 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue