mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
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:
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)
|
||||
|
Loading…
Reference in New Issue
Block a user