gummiboot-builder.py: Not rewriting entries probably doesn't save much time, and is problematic in the case where you delete the latest generation before your rebuild

This commit is contained in:
Shea Levy 2013-02-19 16:35:42 -05:00
parent 6c6d40452f
commit e80cfe7d2d

View File

@ -17,8 +17,6 @@ system_dir = lambda generation: "/nix/var/nix/profiles/system-%d-link" % (genera
def write_entry(generation, kernel, initrd):
entry_file = "@efiSysMountPoint@/loader/entries/nixos-generation-%d.conf" % (generation)
if os.path.exists(entry_file):
return
generation_dir = os.readlink(system_dir(generation))
tmp_path = "%s.tmp" % (entry_file)
kernel_params = "systemConfig=%s init=%s/init " % (generation_dir, generation_dir)