Skip to content

run lxc on /tmp with /tmp on tmpfs

Paul Gevers requested to merge elbrus/debian-ci-config:tmp-on-tmpfs into master

At least with lxc on hosts with enough RAM, it's a speed-up and less disk wear to have /tmp on tmpfs, backed-up with a decent swap file.

However, running lxc-copy from real disk to tmpfs fails, so until that's fixed we need a bit of work around. Before mounting /tmp, we update the containers, then copy them to /tmp, and mount that location of /var/lib/lxc. This needs to happen before debci-workers are started during boot.

Merge request reports

Loading