nixos-install: use absolute path when running passwd in chroot

This commit is contained in:
Luca Bruno 2014-09-03 23:11:37 +02:00
parent 59ad713288
commit a1ded5c20e

View file

@ -246,7 +246,7 @@ chroot $mountPoint /nix/var/nix/profiles/system/activate
# Ask the user to set a root password. # Ask the user to set a root password.
if [ -t 0 ] ; then if [ -t 0 ] ; then
echo "setting root password..." echo "setting root password..."
chroot $mountPoint passwd chroot $mountPoint /var/setuid-wrappers/passwd
fi fi