summary refs log tree commit diff
path: root/nixos/modules/installer
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-05-09 13:19:02 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-05-09 13:25:53 +0200
commit1c4fd9b25d50c3ef99438d0a14222281d4d931a3 (patch)
treef78918b6386d664a219049d060617f7cef40463b /nixos/modules/installer
parentc06786759cafbd27c4d2b79d54f08c99b7a4910b (diff)
downloadnixlib-1c4fd9b25d50c3ef99438d0a14222281d4d931a3.tar
nixlib-1c4fd9b25d50c3ef99438d0a14222281d4d931a3.tar.gz
nixlib-1c4fd9b25d50c3ef99438d0a14222281d4d931a3.tar.bz2
nixlib-1c4fd9b25d50c3ef99438d0a14222281d4d931a3.tar.lz
nixlib-1c4fd9b25d50c3ef99438d0a14222281d4d931a3.tar.xz
nixlib-1c4fd9b25d50c3ef99438d0a14222281d4d931a3.tar.zst
nixlib-1c4fd9b25d50c3ef99438d0a14222281d4d931a3.zip
nixos-install: Run in a separate UTS namespace
This prevents the activation script from clobbering our hostname.
Diffstat (limited to 'nixos/modules/installer')
-rw-r--r--nixos/modules/installer/tools/nixos-install.sh2
1 files changed, 1 insertions, 1 deletions
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