aboutsummaryrefslogtreecommitdiff
path: root/utils/lxc/files
Commit message (Collapse)AuthorAge
* lxc: set RUNTIME_PATH define to the /var/run pathRafał Miłecki2023-05-11
| | | | | | | | | | | | | | | 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>
* lxc-auto: made init script compatible with image builderMarc Benoit2022-11-04
| | | | Signed-off-by: Marc Benoit <marcb62185@gmail.com>
* lxc-auto: step by 1 sec up to $max_timeoutJohn Audia2021-09-25
| | | | | | | | | | | | If the user defines a $max_timeout of 30, the service will wait 30 seconds before it considers lxc-stop complete even though lxc-stop might actually finish much sooner. This introduces an unneeded delay. This commit changes the behavior to check once per second to see when lxc-stop actually stops doing so up to $max_timeout. It also slightly simplifies the code with logic to append the -t $max_timeout to the script. Signed-off-by: John Audia <graysky@archlinux.us>
* lxc: start() during boot()Martin Hammer2020-05-25
| | | | | Signed-off-by: Martin Hammer <34623636+hammer-is@users.noreply.github.com> Signed-off-by: martin <martin@DESKTOP-C822DHJ.lan>
* lxc: bump to 4.0.2Robert Marko2020-05-19
| | | | | | Signed-off-by: Robert Marko <robert.marko@sartura.hr> Signed-off-by: Marijan Svalina <marijan.svalina@sartura.hr> Signed-off-by: Luka Perkov <luka.perkov@sartura.hr>
* lxc: add lxc-unprivileged helper package for unprivileged containersRafał Miłecki2017-12-12
| | | | | | | LXC requires newuidmap and newguidmap with SUID to run unprivileged containers. This package should help users make sure they are available. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* lxc: Use more FSH compliant /srv/lxc instead of new root dirMichal Hrusecky2016-05-30
| | | | | | | | Normally LXC uses /var/lib, but due to hack OpenWRT employs this is not an option. But instead of introducing new top-level directory, FSH compatible /srv can be used. Signed-off-by: Michal Hrusecky <michal.hrusecky@nic.cz>
* utils/lxc: Add working autostart for OpenWrtDaniel Dickinson2016-03-12
| | | | | | | Standard LXC autostart is currently not working in OpenWrt, therefore add our own autostart mechanism for now. Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com>
* lxc: correctly install configuration filesLuka Perkov2014-11-17
Signed-off-by: Luka Perkov <luka@openwrt.org>