devtmpfs is shared between host and containers, and it messes up
lucid containers too.
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
proc proc proc nodev,noexec,nosuid 0 0
sysfs sys sysfs defaults 0 0
EOF
- if grep devtmpfs /proc/filesystems > /dev/null 2>&1; then
-cat <<EOF >> $path/fstab
-devtmpfs dev devtmpfs defaults 0 0
-EOF
- fi
# rmdir /dev/shm for containers that have /run/shm
# I'm afraid of doing rm -rf $rootfs/dev/shm, in case it did
proc proc proc nodev,noexec,nosuid 0 0
sysfs sys sysfs defaults 0 0
EOF
- if grep devtmpfs /proc/filesystems > /dev/null 2>&1; then
-cat <<EOF >> $path/fstab
-devtmpfs dev devtmpfs defaults 0 0
-EOF
- fi
if [ $? -ne 0 ]; then
echo "Failed to add configuration"