]> git.ipfire.org Git - thirdparty/libvirt.git/commit
lxc: create the required directories upon driver start
authorLubomir Rintel <lkundrak@v3.sk>
Wed, 8 Apr 2015 17:16:52 +0000 (19:16 +0200)
committerCédric Bosdonnat <cbosdonnat@suse.com>
Thu, 9 Apr 2015 09:06:26 +0000 (11:06 +0200)
commitda33a1ac1f6c0ae2ebe72bc385bbc7c407026956
treec1484c38a4cd9c997d0dc25869785d507130b493
parentfac04598bb2ab24903274002ea3752f6ad54df33
lxc: create the required directories upon driver start

/var/run may reside on a tmpfs and we fail to create the PID file if
/var/run/lxc does not exist.

Since commit 0a8addc1, the lxc driver's state directory isn't
automatically created before starting a domain. Now, the lxc driver
makes sure the state directory exists when it initializes.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
src/lxc/lxc_driver.c