[lxc/lxc] f97607: lxc-net.in: fix failure executing dnsmasq

20 views
Skip to first unread message

Stéphane Graber

unread,
Apr 2, 2022, 8:33:43 PM4/2/22
to lxc-...@lists.linuxcontainers.org
Branch: refs/heads/master
Home: https://github.com/lxc/lxc
Commit: f97607e02c6e51088234c3af9005bc8ffb512b9e
https://github.com/lxc/lxc/commit/f97607e02c6e51088234c3af9005bc8ffb512b9e
Author: Leesoo Ahn <ls...@ooseel.net>
Date: 2022-04-02 (Sat, 02 Apr 2022)

Changed paths:
M config/init/common/lxc-net.in

Log Message:
-----------
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 <ls...@ooseel.net>


Commit: 5a7b9ce6770f939426ba5c1d1033c16671c825d1
https://github.com/lxc/lxc/commit/5a7b9ce6770f939426ba5c1d1033c16671c825d1
Author: Stéphane Graber <stgr...@ubuntu.com>
Date: 2022-04-02 (Sat, 02 Apr 2022)

Changed paths:
M config/init/common/lxc-net.in

Log Message:
-----------
Merge pull request #4101 from memnoth/fix-fail-exec-dnsmasq

lxc-net.in: fix failure executing dnsmasq


Compare: https://github.com/lxc/lxc/compare/d09a31dba63a...5a7b9ce6770f
Reply all
Reply to author
Forward
0 new messages