nixos-rebuild: use --pipe instead of --pty in systemd-run

Rvfg ff3d9902 a3a75ec9

Changed files
+2 -2
nixos
pkgs
os-specific
linux
nixos-rebuild
+1 -1
nixos/tests/nixos-rebuild-install-bootloader.nix
···
# Need to run `nixos-rebuild` twice because the first run will install
# GRUB anyway
with subtest("Switch system again and install bootloader"):
-
result = machine.succeed("nixos-rebuild switch --install-bootloader")
# install-grub2.pl messages
assert "updating GRUB 2 menu..." in result
assert "installing the GRUB 2 boot loader on /dev/vda..." in result
···
# Need to run `nixos-rebuild` twice because the first run will install
# GRUB anyway
with subtest("Switch system again and install bootloader"):
+
result = machine.succeed("nixos-rebuild switch --install-bootloader 2>&1")
# install-grub2.pl messages
assert "updating GRUB 2 menu..." in result
assert "installing the GRUB 2 boot loader on /dev/vda..." in result
+1 -1
pkgs/os-specific/linux/nixos-rebuild/nixos-rebuild.sh
···
"-E" "NIXOS_INSTALL_BOOTLOADER"
"--collect"
"--no-ask-password"
-
"--pty"
"--quiet"
"--same-dir"
"--service-type=exec"
···
"-E" "NIXOS_INSTALL_BOOTLOADER"
"--collect"
"--no-ask-password"
+
"--pipe"
"--quiet"
"--same-dir"
"--service-type=exec"