Containers: Don't remount /

This commit is contained in:
Eelco Dolstra 2014-08-12 02:51:20 +02:00
parent 04ec038e89
commit b99af5579e
2 changed files with 5 additions and 1 deletions

View file

@ -29,7 +29,9 @@ setPath "@path@"
# Normally, stage 1 mounts the root filesystem read/writable.
# However, in some environments, stage 2 is executed directly, and the
# root is read-only. So make it writable here.
mount -n -o remount,rw none /
if [ "$container" != systemd-nspawn ]; then
mount -n -o remount,rw none /
fi
# Likewise, stage 1 mounts /proc, /dev and /sys, so if we don't have a

View file

@ -89,6 +89,8 @@ with lib;
restartIfChanged = false;
};
systemd.services.systemd-remount-fs.enable = false;
};
}