From 1c4fd9b25d50c3ef99438d0a14222281d4d931a3 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 9 May 2014 13:19:02 +0200 Subject: [PATCH] nixos-install: Run in a separate UTS namespace This prevents the activation script from clobbering our hostname. --- nixos/modules/installer/tools/nixos-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/installer/tools/nixos-install.sh b/nixos/modules/installer/tools/nixos-install.sh index 4c19f62ef032..3311e4c8e9aa 100644 --- a/nixos/modules/installer/tools/nixos-install.sh +++ b/nixos/modules/installer/tools/nixos-install.sh @@ -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