about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2014-12-29 07:09:10 -0500
committerShea Levy <shea@shealevy.com>2014-12-29 07:09:10 -0500
commit9245516b46a64316f1d7b0622ff12519a0316044 (patch)
tree72ce0c096adc8298a09390c307ce197d6cc68c2f /nixos
parent18d3da1a029abcc250d9d3175a7b88f280d118bb (diff)
downloadnixlib-9245516b46a64316f1d7b0622ff12519a0316044.tar
nixlib-9245516b46a64316f1d7b0622ff12519a0316044.tar.gz
nixlib-9245516b46a64316f1d7b0622ff12519a0316044.tar.bz2
nixlib-9245516b46a64316f1d7b0622ff12519a0316044.tar.lz
nixlib-9245516b46a64316f1d7b0622ff12519a0316044.tar.xz
nixlib-9245516b46a64316f1d7b0622ff12519a0316044.tar.zst
nixlib-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')
-rw-r--r--nixos/modules/system/boot/loader/gummiboot/gummiboot-builder.py3
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 db73544181b6..ef431a7732e1 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()