Commit 27125708 by Bogdan Purcareata Committed by Stéphane Graber

busybox template: mount fstab when available

When running unprivileged, lxc-create will touch a fstab file, with bind-mounts for the ttys and other devices. Add this entry in the container config. Signed-off-by: 's avatarBogdan Purcareata <bogdan.purcareata@freescale.com> Acked-by: 's avatarSerge E. Hallyn <serge.hallyn@ubuntu.com>
parent c3c0a8b7
...@@ -301,6 +301,10 @@ EOF ...@@ -301,6 +301,10 @@ EOF
done done
echo "lxc.mount.entry = /sys/kernel/security sys/kernel/security none ro,bind,optional 0 0" >>$path/config echo "lxc.mount.entry = /sys/kernel/security sys/kernel/security none ro,bind,optional 0 0" >>$path/config
echo "lxc.mount.auto = proc:mixed sys" >>$path/config echo "lxc.mount.auto = proc:mixed sys" >>$path/config
if [ -f "$path/fstab" ]; then
echo "lxc.mount = $path/fstab" >>$path/config
fi
} }
remap_userns() remap_userns()
......
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