From 9245516b46a64316f1d7b0622ff12519a0316044 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Mon, 29 Dec 2014 07:09:10 -0500 Subject: [PATCH] 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 --- .../modules/system/boot/loader/gummiboot/gummiboot-builder.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()