mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
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:
parent
6c6d40452f
commit
e80cfe7d2d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user