systemd-boot: allow setting editor security option (#21853)
This commit is contained in:
committed by
Franz Pletz
parent
140d135ee2
commit
98bd722d1d
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user