default fstab could be expanded
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
proc /var/lib/
sysfs /var/lib/
is what lxc-create creates
However
none /var/lib/
none /var/lib/
none /var/lib/
none /var/lib/
is possibly better :- I don't know if the dev/pts one is needed, but having var/lock and var/run on a tmpfs is what we do for Ubuntu.
/var/lock comes up like that automatically, but not /var/run, at least for me with a lucid container.
This is not currently done because there is not yet a good way for a container to reboot/shutdown. The current workaround involves the container monitor watching the container's utmp which is in /var/run. So if you mount tmpfs on top of /var or /var/run, then the monitor cannot detect container reboot vs shutdown.
There is work in progress to add the kernel support needed for containers to cleanly reboot and shut down,but that must pass through the linux-kernel mailing list.
Since this bug is about fstab, a side effect of the reboot vs shutdown issue, I'm going to mark it Triaged and low priority.