lxc: set RUNTIME_PATH define to the /var/run path
authorRafał Miłecki <rafal@milecki.pl>
Sat, 8 Apr 2023 16:18:55 +0000 (18:18 +0200)
committerRafał Miłecki <rafal@milecki.pl>
Fri, 19 May 2023 10:40:00 +0000 (12:40 +0200)
commit20d9cf4bc2a8f5784eb7d3df131c3fe2806244e4
tree67ba4f0046b53a7e9b2a62531a74ad3e911dd4f2
parentcf242774f76bfdbe52f02ef9e86599848c712001
lxc: set RUNTIME_PATH define to the /var/run path

The default runtime directory used by LXC is /run which doesn't exist
in OpenWrt. It causes errors like:

Failed to create lock for foo
lxc-create: foo: tools/lxc_create.c: main: 260 Failed to create lxc container

There has been workaround for that in the lxc-auto.init but it requires
installing "lxc-auto" package. Replacing that "ln -s" workaround with
Makefile specifying RUNTIME_PATH define allows using pure "lxc" in
OpenWrt (without the "lxc-auto").

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit 90fef036fe465262d5915489d45f430b313f22ab)
utils/lxc/Makefile
utils/lxc/files/lxc-auto.init