Skip to content

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.

(cherry picked from commit fa2e4bf)
  • Loading branch information
abbradar committed Jul 26, 2019
1 parent 2418b95 commit aa81b2c
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -147,7 +147,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 aa81b2c

Please sign in to comment.