]> git.ipfire.org Git - thirdparty/lxc.git/commit
lxc-net.in: fix failure executing dnsmasq 4101/head
authorLeesoo Ahn <lsahn@ooseel.net>
Sat, 2 Apr 2022 11:23:21 +0000 (20:23 +0900)
committerLeesoo Ahn <lsahn@ooseel.net>
Sat, 2 Apr 2022 11:23:21 +0000 (20:23 +0900)
commitf97607e02c6e51088234c3af9005bc8ffb512b9e
tree6ff55e3377d7b43c5bd8c772f5e22085f367b43b
parentd09a31dba63af595a01d7519ceebe5b46e1dec08
lxc-net.in: fix failure executing dnsmasq

Failure executing dnsmasq happens if misc dir is not existed as the
following error messages.

localhost.localdomain systemd[1]: Starting LXC network bridge setup...
localhost.localdomain lxc-net[5754]: dnsmasq: cannot open or create lease file /usr/local/var/lib/misc/dnsmasq.lxcbr0.leases: No such file or directory
localhost.localdomain dnsmasq[5754]: cannot open or create lease file /usr/local/var/lib/misc/dnsmasq.lxcbr0.leases: No such file or directory
localhost.localdomain dnsmasq[5754]: FAILED to start up
localhost.localdomain lxc-net[5727]: Failed to setup lxc-net.
localhost.localdomain lxc-net[5727]: Failed to setup lxc-net.
localhost.localdomain systemd[1]: lxc-net.service: Main process exited, code=exited, status=1/FAILURE
localhost.localdomain systemd[1]: lxc-net.service: Failed with result 'exit-code'.
localhost.localdomain systemd[1]: Failed to start LXC network bridge setup.

Modify 'lxc-net' script to call 'mkdir -p' command if the directory is not
existed before executing dnsmasq daemon.

Signed-off-by: Leesoo Ahn <lsahn@ooseel.net>
config/init/common/lxc-net.in