summary refs log tree commit diff
path: root/nixos/modules/installer/tools/nixos-enter.sh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2018-02-05 21:05:02 +0100
committerEelco Dolstra <edolstra@gmail.com>2018-02-05 21:05:02 +0100
commitf9e64dbe764745f05ccf5ac458e804044196f571 (patch)
tree176dcf3d7ab46c16f6cb41c013050fe98a37c41b /nixos/modules/installer/tools/nixos-enter.sh
parent1346923ffa144fa4b596588e1611c02694b48fba (diff)
downloadnixpkgs-f9e64dbe764745f05ccf5ac458e804044196f571.tar
nixpkgs-f9e64dbe764745f05ccf5ac458e804044196f571.tar.gz
nixpkgs-f9e64dbe764745f05ccf5ac458e804044196f571.tar.bz2
nixpkgs-f9e64dbe764745f05ccf5ac458e804044196f571.tar.lz
nixpkgs-f9e64dbe764745f05ccf5ac458e804044196f571.tar.xz
nixpkgs-f9e64dbe764745f05ccf5ac458e804044196f571.tar.zst
nixpkgs-f9e64dbe764745f05ccf5ac458e804044196f571.zip
nixos-enter: Don't mount special filesystems
The activation script already does this.
Diffstat (limited to 'nixos/modules/installer/tools/nixos-enter.sh')
-rw-r--r--nixos/modules/installer/tools/nixos-enter.sh6
1 files changed, 1 insertions, 5 deletions
diff --git a/nixos/modules/installer/tools/nixos-enter.sh b/nixos/modules/installer/tools/nixos-enter.sh
index c5c7963b29f..96b6a017b81 100644
--- a/nixos/modules/installer/tools/nixos-enter.sh
+++ b/nixos/modules/installer/tools/nixos-enter.sh
@@ -45,12 +45,8 @@ while [ "$#" -gt 0 ]; do
     esac
 done
 
-# Set up some bind mounts we'll want regardless of chroot or not
-mkdir -m 0755 -p "$mountPoint/dev" "$mountPoint/proc" "$mountPoint/sys" "$mountPoint/run"
+mkdir -m 0755 -p "$mountPoint/dev"
 mount --rbind /dev "$mountPoint/dev"
-mount -t proc none "$mountPoint/proc"
-mount -t sysfs none "$mountPoint/sys"
-mount -t tmpfs none "$mountPoint/run"
 
 # Run the activation script. Set $LOCALE_ARCHIVE to supress some Perl locale warnings.
 LOCALE_ARCHIVE=$system/sw/lib/locale/locale-archive chroot "$mountPoint" "$system/activate" >&2