diff options
author | Shea Levy <shea@shealevy.com> | 2014-12-29 07:09:10 -0500 |
---|---|---|
committer | Shea Levy <shea@shealevy.com> | 2014-12-29 07:09:10 -0500 |
commit | 9245516b46a64316f1d7b0622ff12519a0316044 (patch) | |
tree | 72ce0c096adc8298a09390c307ce197d6cc68c2f /nixos/modules/system | |
parent | 18d3da1a029abcc250d9d3175a7b88f280d118bb (diff) | |
download | nixpkgs-9245516b46a64316f1d7b0622ff12519a0316044.tar nixpkgs-9245516b46a64316f1d7b0622ff12519a0316044.tar.gz nixpkgs-9245516b46a64316f1d7b0622ff12519a0316044.tar.bz2 nixpkgs-9245516b46a64316f1d7b0622ff12519a0316044.tar.lz nixpkgs-9245516b46a64316f1d7b0622ff12519a0316044.tar.xz nixpkgs-9245516b46a64316f1d7b0622ff12519a0316044.tar.zst nixpkgs-9245516b46a64316f1d7b0622ff12519a0316044.zip |
gummiboot-builder.py: run nix with no build-users-group
During install, the bootloader script gets run inside a chroot after the /etc/group bind-mount is unmounted. Since we're not doing any building, this should be safe, but really nix should just not care if the group does not exist when no build is needed. Fixes #5494
Diffstat (limited to 'nixos/modules/system')
-rw-r--r-- | nixos/modules/system/boot/loader/gummiboot/gummiboot-builder.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/loader/gummiboot/gummiboot-builder.py b/nixos/modules/system/boot/loader/gummiboot/gummiboot-builder.py index db73544181b..ef431a7732e 100644 --- a/nixos/modules/system/boot/loader/gummiboot/gummiboot-builder.py +++ b/nixos/modules/system/boot/loader/gummiboot/gummiboot-builder.py @@ -63,7 +63,8 @@ def get_generations(profile): "@nix@/bin/nix-env", "--list-generations", "-p", - "/nix/var/nix/profiles/%s" % (profile) + "/nix/var/nix/profiles/%s" % (profile), + "--option", "build-users-group", "" ]) gen_lines = gen_list.split('\n') gen_lines.pop() |