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
commit9245516b46a64316f1d7b0622ff12519a0316044
authorShea Levy <shea@shealevy.com>
dateMon 29 Dec 2014, 07:09 (12 years ago)
parent18d3da1
nixos/modules/system/boot/loader/gummiboot/gummiboot-builder.py+2−1
@@ -63,7 +63,8 @@ def get_generations(profile):
6363 "@nix@/bin/nix-env",
6464 "--list-generations",
6565 "-p",
66− "/nix/var/nix/profiles/%s" % (profile)
66+ "/nix/var/nix/profiles/%s" % (profile),
67+ "--option", "build-users-group", ""
6768 ])
6869 gen_lines = gen_list.split('\n')
6970 gen_lines.pop()