Browse Source

Do not remove the boot directory, if it happens to end up empty.

Changelog: None

Signed-off-by: Kristian Amlie <kristian.amlie@northern.tech>
change-dependabot-prefix
Kristian Amlie 3 years ago
parent
commit
edb4e115ce
No known key found for this signature in database GPG Key ID: F464407C996AF03F
  1. 2
      modules/grub.sh

2
modules/grub.sh

@ -173,7 +173,7 @@ function grub_install_mender_grub() {
sudo rm -rf work/boot/EFI/systemd
sudo rm -rf work/boot/NvVars
for empty_dir in $(
cd work/boot && find . -maxdepth 1 -type d -empty
cd work/boot && find . -maxdepth 1 -type d -empty -not -name .
); do
sudo rmdir work/boot/$empty_dir
done

Loading…
Cancel
Save