ksud: handle partition after REMOVE and REPLACE

This commit is contained in:
weishu
2023-04-08 12:51:16 +08:00
committed by GitHub
parent ffe3e68c35
commit e7881c350c

View File

@@ -389,10 +389,6 @@ install_module() {
[ -f $MODPATH/customize.sh ] && . $MODPATH/customize.sh
fi
handle_partition vendor
handle_partition system_ext
handle_partition product
# Handle replace folders
for TARGET in $REPLACE; do
ui_print "- Replace target: $TARGET"
@@ -405,6 +401,10 @@ install_module() {
mark_remove $MODPATH$TARGET
done
handle_partition vendor
handle_partition system_ext
handle_partition product
if $BOOTMODE; then
mktouch $NVBASE/modules/$MODID/update
rm -rf $NVBASE/modules/$MODID/remove 2>/dev/null