summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorLuca Bruno <lucabru@src.gnome.org>2014-09-03 23:11:37 +0200
committerLuca Bruno <lucabru@src.gnome.org>2014-09-03 23:12:40 +0200
commita1ded5c20e42c463686aa39ed8f0a3e7de8858d9 (patch)
tree008fa73806e7beafa6b56887e937a3f52b87f7b7 /nixos
parent59ad713288134ba5441edfa941792a6652a1e5c2 (diff)
downloadnixlib-a1ded5c20e42c463686aa39ed8f0a3e7de8858d9.tar
nixlib-a1ded5c20e42c463686aa39ed8f0a3e7de8858d9.tar.gz
nixlib-a1ded5c20e42c463686aa39ed8f0a3e7de8858d9.tar.bz2
nixlib-a1ded5c20e42c463686aa39ed8f0a3e7de8858d9.tar.lz
nixlib-a1ded5c20e42c463686aa39ed8f0a3e7de8858d9.tar.xz
nixlib-a1ded5c20e42c463686aa39ed8f0a3e7de8858d9.tar.zst
nixlib-a1ded5c20e42c463686aa39ed8f0a3e7de8858d9.zip
nixos-install: use absolute path when running passwd in chroot
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/installer/tools/nixos-install.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/installer/tools/nixos-install.sh b/nixos/modules/installer/tools/nixos-install.sh
index c633cf4a839e..bd334c2a3cb4 100644
--- a/nixos/modules/installer/tools/nixos-install.sh
+++ b/nixos/modules/installer/tools/nixos-install.sh
@@ -246,7 +246,7 @@ chroot $mountPoint /nix/var/nix/profiles/system/activate
 # Ask the user to set a root password.
 if [ -t 0 ] ; then
     echo "setting root password..."
-    chroot $mountPoint passwd
+    chroot $mountPoint /var/setuid-wrappers/passwd
 fi