nixpkgs/nixos/modules/system/boot
aszlig 4daccf208f
systemd-boot: Make sure /etc/machine-id exists
This leads to the following error when trying to install a new machine
where the machine ID wasn't yet initialized during boot:

Failed to get machine did: No such file or directory

In addition this was also detected by the simpleUefiGummiboot installer
test.

So let's generate a fallback machine ID by using
systemd-machine-id-setup before actually running bootctl.

Tested this by running the installer.simpleUefiGummiboot test, it still
fails but not because of the machine ID.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Cc: @edolstra, @shlevy, @mic92
Fixes: #22561
2017-02-20 14:54:44 +01:00
..
loader systemd-boot: Make sure /etc/machine-id exists 2017-02-20 14:54:44 +01:00
coredump.nix systemd-coredump: Add systemd service and fix sysctl pattern. 2016-07-10 18:07:37 +10:00
emergency-mode.nix nixos: tmp on tmpfs option 2014-07-30 16:19:26 +02:00
initrd-network.nix initrd-network: call postCommands only if network is up 2016-02-03 16:35:21 +03:00
initrd-ssh.nix initrd-ssh: fix authorized_key generation with multiple keys 2016-11-16 14:47:37 +00:00
kernel.nix fix comments about nixos-hardware-scan 2017-02-18 13:29:47 +01: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 luksroot module: optionSet -> submodule 2016-09-13 12:53:13 +09:00
modprobe.nix nixos treewide: don't set MODULE_DIR 2016-08-19 17:56:54 +03:00
networkd.nix networking.networkd: adjust autmatic mapping of bonds 2017-02-16 21:24:40 +01:00
pbkdf2-sha512.c Update to the Yubikey PBA 2014-02-08 14:59:52 +01:00
plymouth.nix nixos/modules: use defaultText where applicable 2016-11-21 16:35:15 +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
resolved.nix systemd: 231 -> 232 2017-01-26 17:52:52 +01: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 Fix using ephemeral disks for /tmp etc. in EC2 instances 2017-01-03 17:32:42 +01:00
stage-1.nix runCommand: Use stdenvNoCC 2016-09-29 13:06:43 +02:00
stage-2-init.sh Revert "nixos/stage2: Check for each special mount individually and mount missing ones. (#21370)" 2017-01-10 17:35:38 +01:00
stage-2.nix nixos filesystems: unify early filesystems handling 2016-08-27 13:38:20 +03:00
systemd-lib.nix systemd service: add aliases option 2017-02-02 00:52:54 +03:00
systemd-nspawn.nix nspawn module: optionSet -> submodule 2016-10-21 01:31:54 +09:00
systemd-unit-options.nix systemd service: add aliases option 2017-02-02 00:52:54 +03:00
systemd.nix systemd service: don't install systemd-hwdb-update 2017-02-08 21:42:07 +03:00
timesyncd.nix ntp: make timesyncd the new default 2016-12-17 00:00:45 +01:00
tmp.nix nixos: tmp on tmpfs option 2014-07-30 16:19:26 +02:00