Commit b335cf8d by Stéphane Graber

lxc-archlinux: Cleanup fstab

It's been brought to my attention that the read-only mount of /proc/sys is causing problems to archlinux users, so instead just have LXC mount proc and sysfs normally (read-write). Reported-by: 's avatarJohn Lane <john@lane.uk.net> Signed-off-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
parent d0800999
...@@ -156,10 +156,8 @@ EOF ...@@ -156,10 +156,8 @@ EOF
grep -q "^lxc.rootfs" ${config_path}/config 2>/dev/null || echo "lxc.rootfs = ${rootfs_path}" >> ${config_path}/config grep -q "^lxc.rootfs" ${config_path}/config 2>/dev/null || echo "lxc.rootfs = ${rootfs_path}" >> ${config_path}/config
cat > "${config_path}/fstab" << EOF cat > "${config_path}/fstab" << EOF
sysfs sys sysfs ro,defaults 0 0 sysfs sys sysfs defaults 0 0
proc proc proc nodev,noexec,nosuid 0 0 proc proc proc nodev,noexec,nosuid 0 0
/proc/sys ${rootfs_path}/proc/sys none ro,bind 0 0
#/var/log/journal ${rootfs_path}/var/log/journal none bind 0 0
EOF EOF
return 0 return 0
......
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