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)
committerRosen Penev <rosenp@gmail.com>
Thu, 11 May 2023 15:23:23 +0000 (18:23 +0300)
commit90fef036fe465262d5915489d45f430b313f22ab
treef2fead73dfbf4f12d6b8ec046fb32ba14d659e35
parent6020ca52bf5d7b2869ef1ff8a966d15281aa56ab
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>
utils/lxc/Makefile
utils/lxc/files/lxc-auto.init