nixos-install: Run in a separate UTS namespace
This prevents the activation script from clobbering our hostname.
This commit is contained in:
@@ -12,7 +12,7 @@
|
|||||||
if [ "$(id -u)" = 0 ]; then
|
if [ "$(id -u)" = 0 ]; then
|
||||||
if [ -z "$NIXOS_INSTALL_REEXEC" ]; then
|
if [ -z "$NIXOS_INSTALL_REEXEC" ]; then
|
||||||
export NIXOS_INSTALL_REEXEC=1
|
export NIXOS_INSTALL_REEXEC=1
|
||||||
exec unshare --mount -- "$0" "$@"
|
exec unshare --mount --uts -- "$0" "$@"
|
||||||
else
|
else
|
||||||
mount --make-rprivate /
|
mount --make-rprivate /
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user