mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-13 23:12:50 +00:00
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: Bogdan Purcareata <bogdan.purcareata@freescale.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
parent
a542dd3c1a
commit
12c3b43fbe
@ -301,6 +301,10 @@ EOF
|
||||
done
|
||||
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
|
||||
|
||||
if [ -f "$path/fstab" ]; then
|
||||
echo "lxc.mount = $path/fstab" >>$path/config
|
||||
fi
|
||||
}
|
||||
|
||||
remap_userns()
|
||||
|
Loading…
Reference in New Issue
Block a user