mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
nixos-install: Run in a separate UTS namespace
This prevents the activation script from clobbering our hostname.
This commit is contained in:
parent
c06786759c
commit
1c4fd9b25d
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@
|
|||
if [ "$(id -u)" = 0 ]; then
|
||||
if [ -z "$NIXOS_INSTALL_REEXEC" ]; then
|
||||
export NIXOS_INSTALL_REEXEC=1
|
||||
exec unshare --mount -- "$0" "$@"
|
||||
exec unshare --mount --uts -- "$0" "$@"
|
||||
else
|
||||
mount --make-rprivate /
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue