git.iko.soy/typeable/nixpkgs
on master help sign in
Merge branch 'stage2-generalise-containers' of https://github.com/rickynils/nixpkgs
commit03b888e205e030b2272582d7f4ff037daacc2ab0 authorShea Levy <shea@shealevy.com> dateWed 7 Sep 2016, 05:39 (10 years ago) parent70be99cab9537c
1 file changed+2−2
nixos/modules/system/boot/stage-2-init.sh+2−2
nixos/modules/system/boot/stage-2-init.sh+2−2
@@ -29,14 +29,14 @@ setPath "@path@"
2929# Normally, stage 1 mounts the root filesystem read/writable.
3030# However, in some environments, stage 2 is executed directly, and the
3131# root is read-only. So make it writable here.
32−if [ "$container" != systemd-nspawn ]; then
32+if [ -z "$container" ]; then
3333 mount -n -o remount,rw none /
3434fi
3535
3636
3737# Likewise, stage 1 mounts /proc, /dev and /sys, so if we don't have a
3838# stage 1, we need to do that here.
39−if [ ! -e /proc/1 ]; then
39+if [ ! -e /proc/1 ] || [ -n "$container" ]; then
4040 specialMount() {
4141 local device="$1"
4242 local mountPoint="$2"