nixos/systemd-boot: don't remove directories from EFI dir

This will only result in an error. These directories might be created by, for example, fwupdmgr.
This commit is contained in:
Nikolay Amiantov
2019-06-03 11:55:48 +03:00
parent 7ec20f99e6
commit fa2e4bfb61
@@ -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():