nixpkgs/pkgs/os-specific/linux/nixos-rebuild
r-vdp 1da9bad1a2
nixos-rebuild: run systemd-run with / as the working directory
Before we would run systemd-run with the user's home dir as the working
directory, but this causes issues when the home dir is on a separate
partition and that partition cannot be mounted, as the transient unit
created by systemd-run would gain a dependency on the home mount and fail.
Since the root partition is guaranteed to be mounted, using that as the
working directory avoids this issue and allows doing a remote
nixos-rebuild to fix the issue preventing /home from being mounted.
2024-11-03 11:35:30 +01:00
..
test
_nixos-rebuild nixos-rebuild: add --no-ssh-tty flag 2024-09-04 01:33:03 +08:00
default.nix
nixos-rebuild.8 nixos-rebuild: add --no-ssh-tty flag 2024-09-04 01:33:03 +08:00
nixos-rebuild.sh nixos-rebuild: run systemd-run with / as the working directory 2024-11-03 11:35:30 +01:00