mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-17 15:09:26 +03:00
systemd-boot: allow setting editor security option (#21853)
This commit is contained in:
parent
140d135ee2
commit
98bd722d1d
2 changed files with 18 additions and 0 deletions
|
@ -28,6 +28,8 @@ def write_loader_conf(generation):
|
|||
if "@timeout@" != "":
|
||||
f.write("timeout @timeout@\n")
|
||||
f.write("default nixos-generation-%d\n" % generation)
|
||||
if not @editor@:
|
||||
f.write("editor 0");
|
||||
os.rename("@efiSysMountPoint@/loader/loader.conf.tmp", "@efiSysMountPoint@/loader/loader.conf")
|
||||
|
||||
def copy_from_profile(generation, name, dry_run=False):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue