kernel-install: remove .extra.d/ directory too
When a UKI is removed, the per-UKI .extra.d/ directory (addons, extensions, etc) is left behind.
This commit is contained in:
committed by
Yu Watanabe
parent
a1417e5563
commit
0747e3b60e
@@ -34,9 +34,10 @@ UKI_DIR="$BOOT_ROOT/EFI/Linux"
|
||||
case "$COMMAND" in
|
||||
remove)
|
||||
[ "$KERNEL_INSTALL_VERBOSE" -gt 0 ] && \
|
||||
echo "Removing $UKI_DIR/$ENTRY_TOKEN-$KERNEL_VERSION*.efi"
|
||||
exec rm -f \
|
||||
echo "Removing $UKI_DIR/$ENTRY_TOKEN-$KERNEL_VERSION*.efi and extras"
|
||||
exec rm -rf \
|
||||
"$UKI_DIR/$ENTRY_TOKEN-$KERNEL_VERSION.efi" \
|
||||
"$UKI_DIR/$ENTRY_TOKEN-$KERNEL_VERSION.efi.extra.d/" \
|
||||
"$UKI_DIR/$ENTRY_TOKEN-$KERNEL_VERSION+"*".efi"
|
||||
;;
|
||||
add)
|
||||
|
||||
Reference in New Issue
Block a user