Commit graph

8 commits

Author SHA1 Message Date
Marc Benoit
e70844a9ca lxc-auto: made init script compatible with image builder
Signed-off-by: Marc Benoit <marcb62185@gmail.com>
2022-11-04 13:15:57 -07:00
John Audia
7984d2d74a lxc-auto: step by 1 sec up to $max_timeout
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>
2021-09-25 12:37:06 -07:00
Martin Hammer
dcfaef0da5 lxc: start() during boot()
Signed-off-by: Martin Hammer <34623636+hammer-is@users.noreply.github.com>
Signed-off-by: martin <martin@DESKTOP-C822DHJ.lan>
2020-05-25 22:23:59 +02:00
Robert Marko
9f43594e3a lxc: bump to 4.0.2
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>
2020-05-19 00:19:15 +02:00
Rafał Miłecki
c40a0ca3a3 lxc: add lxc-unprivileged helper package for unprivileged containers
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>
2017-12-12 13:02:15 +01:00
Michal Hrusecky
0708c4171e
lxc: Use more FSH compliant /srv/lxc instead of new root dir
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>
2016-05-30 09:04:26 +02:00
Daniel Dickinson
b7b0f59e1c utils/lxc: Add working autostart for OpenWrt
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>
2016-03-12 19:01:59 -05:00
Luka Perkov
dfd4daf633 lxc: correctly install configuration files
Signed-off-by: Luka Perkov <luka@openwrt.org>
2014-11-17 21:48:36 +01:00