@@ -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"