nixpkgs/nixos
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
..
doc/manual manual: Add link to config section (#22994) 2017-02-20 14:32:49 +01:00
lib nixos/test: Fix escaping for copyFileFromHost 2017-02-17 19:45:49 +01:00
maintainers Create AMIs for ca-central-1 (Canada) 2017-02-19 23:19:07 +01:00
modules systemd-boot: Make sure /etc/machine-id exists 2017-02-20 14:54:44 +01:00
tests nixos/tests/taskserver: Add test for manual config 2017-02-17 19:46:01 +01:00
COPYING
default.nix nix: Add a "dev" output 2016-04-18 21:13:18 +02:00
README
release-combined.nix nixos: drop references to kde4 2017-02-11 14:01:13 -05:00
release-small.nix nixos/release-small.nix: cleanup to use default versions 2017-01-27 15:33:54 +01:00
release.nix pam_oath: require OATH and pam_unix credentials to be valid 2017-02-12 18:27:11 -05:00

*** NixOS ***

NixOS is a Linux distribution based on the purely functional package
management system Nix.  More information can be found at
http://nixos.org/nixos and in the manual in doc/manual.