1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 15:41:40 +00:00
nixpkgs/nixos/modules/system/boot
Josh Cartwright 626a666da5 gummiboot/builder: fix timeout setting when unset
The gummiboot-builder.py script is expecting the @timeout@ metavar to be
substituted for either an empty string (in the case where a user has
left the timeout unset) or the actual value set in the system
configuration.

However, the config.boot.loader.gummiboot.timeout option defaults to
'null', and due to the way pkgs.substituteAll works, the substitution
for '@timeout@' is _never_ set to the empty string.  This causes the
builder script to put a bogus line into /boot/loader/loader.conf:

   timeout @timeout@

Fix this by explicitly setting 'timeout' to the empty string when it's
unset in the system configuration.

Signed-off-by: Josh Cartwright <joshc@eso.teric.us>
2014-09-03 05:36:45 +02:00
..
loader gummiboot/builder: fix timeout setting when unset 2014-09-03 05:36:45 +02:00
emergency-mode.nix nixos: tmp on tmpfs option 2014-07-30 16:19:26 +02:00
kernel.nix initrd.availableKernelModules: add support for keyboards 2014-08-12 20:00:01 +02:00
kexec.nix Move all of NixOS to nixos/ in preparation of the repository merge 2013-10-10 13:28:20 +02:00
luksroot.nix Remove useless use of optionSet. 2014-08-29 18:43:03 +02:00
modprobe.nix modprobe.nix: Use modern environment.etc syntax 2014-07-31 22:09:51 +02:00
pbkdf2-sha512.c Update to the Yubikey PBA 2014-02-08 14:59:52 +01:00
readonly-mountpoint.c Move all of NixOS to nixos/ in preparation of the repository merge 2013-10-10 13:28:20 +02:00
shutdown.nix Don't run hwclock if /dev/rtc doesn't exist 2014-05-05 16:47:51 +02:00
stage-1-init.sh nixos/stage-1: Don't check resilient filesystems 2014-08-05 21:06:51 +02:00
stage-1.nix nixos: Remove modprobe.d/nixos.conf from initrd. 2014-08-24 18:19:56 +02:00
stage-2-init.sh Containers: Don't remount / 2014-08-18 17:14:43 +02:00
stage-2.nix nixos: tmp on tmpfs option 2014-07-30 16:19:26 +02:00
systemd-unit-options.nix Refactor unit option declarations 2014-04-17 23:35:05 +02:00
systemd.nix Don't barf if /var/log doesn't support ACLs 2014-08-18 14:21:45 +02:00
tmp.nix nixos: tmp on tmpfs option 2014-07-30 16:19:26 +02:00