Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Commit

Permalink
nixos/systemd-boot: don't remove directories from EFI dir
Browse files Browse the repository at this point in the history
This will only result in an error. These directories might be created by, for example, fwupdmgr.
  • Loading branch information
abbradar committed Jun 3, 2019
1 parent 7ec20f9 commit fa2e4bf
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -154,7 +154,7 @@ def remove_old_entries(gens):
except ValueError:
pass
for path in glob.iglob("@efiSysMountPoint@/efi/nixos/*"):
if not path in known_paths:
if not path in known_paths and not os.path.isdir(path):
os.unlink(path)

def get_profiles():
Expand Down

0 comments on commit fa2e4bf

Please sign in to comment.