3
0
Fork 0
forked from mirrors/nixpkgs

fix users.mutableUsers = false; install in iso

This commit is contained in:
Domen Kožar 2014-12-18 12:18:24 +01:00
parent 0d4acad489
commit 9bc8bcbbdc

View file

@ -250,7 +250,7 @@ chroot $mountPoint /nix/var/nix/profiles/system/activate
# Ask the user to set a root password.
if [ -t 0 ] ; then
if [ "$(chroot $mountPoint nix-instantiate --eval '<nixos>' -A config.users.mutableUsers)" = true ] && [ -t 0 ] ; then
echo "setting root password..."
chroot $mountPoint /var/setuid-wrappers/passwd
fi