diff options
author | Nikolay Amiantov <ab@fmap.me> | 2019-05-10 08:42:23 +0300 |
---|---|---|
committer | Nikolay Amiantov <ab@fmap.me> | 2019-06-03 11:55:48 +0300 |
commit | fa2e4bfb61cc5826d36833b12fda312ac1261137 (patch) | |
tree | 51b57608c967a0f48e8004cfd8f1d1a1a6f30c24 /nixos | |
parent | 7ec20f99e65f75b224422b8cc98e3feda9bfb08b (diff) |
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.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/system/boot/loader/systemd-boot/systemd-boot-builder.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/loader/systemd-boot/systemd-boot-builder.py b/nixos/modules/system/boot/loader/systemd-boot/systemd-boot-builder.py index 940d4c0eb973..ebe37ca10a2d 100644 --- a/nixos/modules/system/boot/loader/systemd-boot/systemd-boot-builder.py +++ b/nixos/modules/system/boot/loader/systemd-boot/systemd-boot-builder.py @@ -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(): |