Commit 192df6e2 by Serge Hallyn Committed by Stéphane Graber

revert devtmpfs in ubuntu templates

devtmpfs is shared between host and containers, and it messes up lucid containers too. Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
parent c215bff6
...@@ -95,11 +95,6 @@ EOF ...@@ -95,11 +95,6 @@ EOF
proc proc proc nodev,noexec,nosuid 0 0 proc proc proc nodev,noexec,nosuid 0 0
sysfs sys sysfs defaults 0 0 sysfs sys sysfs defaults 0 0
EOF 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 # rmdir /dev/shm for containers that have /run/shm
# I'm afraid of doing rm -rf $rootfs/dev/shm, in case it did # I'm afraid of doing rm -rf $rootfs/dev/shm, in case it did
......
...@@ -353,11 +353,6 @@ EOF ...@@ -353,11 +353,6 @@ EOF
proc proc proc nodev,noexec,nosuid 0 0 proc proc proc nodev,noexec,nosuid 0 0
sysfs sys sysfs defaults 0 0 sysfs sys sysfs defaults 0 0
EOF 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 if [ $? -ne 0 ]; then
echo "Failed to add configuration" echo "Failed to add configuration"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment