tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
nixos-install: correctly detect stdin
Domen Kožar
10 years ago
ff88f4bc
182acabb
+1
-1
1 changed file
expand all
collapse all
unified
split
nixos
modules
installer
tools
nixos-install.sh
+1
-1
nixos/modules/installer/tools/nixos-install.sh
···
263
263
264
264
265
265
# Ask the user to set a root password.
266
266
-
if [ "$(chroot $mountPoint nix-instantiate --eval '<nixpkgs/nixos>' -A config.users.mutableUsers)" = true ] && [ -t 1 ] ; then
266
266
+
if [ "$(chroot $mountPoint nix-instantiate --eval '<nixpkgs/nixos>' -A config.users.mutableUsers)" = true ] && [ -t 0 ] ; then
267
267
echo "setting root password..."
268
268
chroot $mountPoint /var/setuid-wrappers/passwd
269
269
fi