aboutsummaryrefslogtreecommitdiff
path: root/utils/lxc
Commit message (Collapse)AuthorAge
* treewide: assign PKG_CPE_IDFabrice Fontaine2024-02-04
| | | | Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
* lxc: update to 5.0.3John Audia2023-08-04
| | | | | | | | | | Bump to latest upstream release. Build system: x86/64 Build-tested: x86/64/AMD Cezanne Run-tested: x86/64/AMD Cezanne Signed-off-by: John Audia <therealgraysky@proton.me>
* 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>
* treewide: refactor to use PKG_BUILD_FLAGS:=no-mips16Andre Heider2023-04-08
| | | | | | | See commit 5c545bdb "treewide: replace PKG_USE_MIPS16:=0 with PKG_BUILD_FLAGS:=no-mips16" on the main repository. Signed-off-by: Andre Heider <a.heider@gmail.com>
* lxc: update to 5.0.2John Audia2023-04-06
| | | | | | | | | | | | | | | | | | | | | | | | | Bump to latest upstream release. Removed upstreamed patches: 001-build-detect-where-struct-mount_attr-is-declared.patch[1] 002-build-detect-sys-pidfd.h-availability.patch[2] 003-build-check-for-FS_CONFIG_-header-symbol-in-sys-moun.patch[3] 011-tree-wide-wipe-direct-or-indirect-linux-mount.h-incl.patch[4] 012-tree-wide-use-struct-clone_args-directly.patch[5] 013-tree-wide-use-struct-open_how-directly.patch[6] 1. https://github.com/lxc/lxc/commit/b7b269680f4a773a54b274d7fbd1140fc32e1935 2. https://github.com/lxc/lxc/commit/e510d6bd870c15fc509477343cb1268b9726caa6 3. https://github.com/lxc/lxc/commit/02f4bd00f5b5648b7f71c266d36a961fe54dbfc6 4. https://github.com/lxc/lxc/commit/497479ea3b8d13900a8f9427a5ade8a51facd7ab 5. https://github.com/lxc/lxc/commit/c9bca33263ed82190edc77960cdc19c3088167e6 6. https://github.com/lxc/lxc/commit/d1dfce9c59067aac0a22cdffe8b6d80f6bbdae87 Build system: x86_64 Build-tested: bcm2711/RPi4B Run-tested: bcm2711/RPi4B Signed-off-by: John Audia <therealgraysky@proton.me>
* lxc: Remove AUTORELEASEHauke Mehrtens2022-12-22
| | | | | | The previous version used PKG_RELEASE:=3. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* lxc: Fix compilation with glibc 2.36Hauke Mehrtens2022-12-22
| | | | | | | | | | | Backport patches from upstream lxc master to fix compilation against glibc 2.36. The changes were added in these pull requests: https://github.com/lxc/lxc/pull/4179 https://github.com/lxc/lxc/pull/4181 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* lxc-auto: made init script compatible with image builderMarc Benoit2022-11-04
| | | | Signed-off-by: Marc Benoit <marcb62185@gmail.com>
* lxc: update to 5.0.1John Audia2022-09-09
| | | | | | | | | | | Bump to latest and update Makefile to use meson which is upstream's standard. Deleted unneeded 010-Remove-distro-check.patch (reference to configure). Build system: x86_64 Build-tested: bcm2711/RPi4B Run-tested: bcm2711/RPi4B Signed-off-by: John Audia <therealgraysky@proton.me>
* lxc: export systemd cgroups after installMichal Vasilek2022-06-24
| | | | | | | | | | otherwise, a user would have to either manually run /etc/init.d/lxc-auto boot or reboot the system to start using lxc. originally committed in 2cde10b95053bf958a4001fb0a82c4563bf345e2 reverted in 039912dec5d3ba2b0f6f53ab8330ab9fea2f7adf Signed-off-by: Michal Vasilek <michal.vasilek@nic.cz>
* Revert "lxc: export systemd cgroups after install"Stijn Tintel2022-05-18
| | | | | | | | | | | | | | | | | | The postinst script is sourced during image build, which causes the follow failure: /home/stijn/Development/OpenWrt/openwrt/build_dir/target-x86_64_musl/root-x86/etc/init.d/lxc-auto: line 3: /lib/functions.sh: No such file or directory postinst script ./usr/lib/opkg/info/lxc-auto.postinst has failed with exit code 1 Sourcing /lib/functions.sh is not needed, as /etc/rc.common does so already. Unfortunately removing that line from the init script is not enough to fix the problem. The postinst script should also check IPKG_INSTROOT. As these two changes are unrelated, they should go in separate commits, and the solution to the image build problem is to revert the commit that introduced the breakage. This reverts commit 2cde10b95053bf958a4001fb0a82c4563bf345e2. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* lxc: export systemd cgroups after installMichal Vasilek2022-05-14
| | | | | | | otherwise, a user would have to either manually run /etc/init.d/lxc-auto boot or reboot the system to start using lxc. Signed-off-by: Michal Vasilek <michal.vasilek@nic.cz>
* lxc: update maintainer emailMarko Ratkaj2022-03-31
| | | | Signed-off-by: Marko Ratkaj <markoratkaj@gmail.com>
* lxc-create: update depends to include getoptJohn Audia2022-02-07
| | | | | | | | | | Fixes https://github.com/openwrt/packages/issues/16684 Build system: x86_64 Build-tested: bcm2711/RPi4B Run-tested: bcm2711/RPi4B Signed-off-by: John Audia <graysky@archlinux.us>
* lxc: update to 4.10.12John Audia2022-02-07
| | | | | | | | | | | | | | Bump to latest upstream release and rebase: 010-Remove-distro-check.patch 025-remove-unsupported-option.patch After updating ran `make package/lxc/refresh` to clean dirty patches Build system: x86_64 Build-tested: bcm2711/RPi4B Run-tested: bcm2711/RPi4B Signed-off-by: John Audia <graysky@archlinux.us>
* 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: remove legacy cgroups from common.confJohn Audia2021-09-18
| | | | | | | | | | | | | | | | | | I am unaware of any kernel currently provided that retains cgroup v1 support. This patch removes these lines in /usr/share/lxc/config/common.conf to allow for error free usage. Providing common.conf as-is will result in failure to start. One solution is to comment out the legacy lines.[1] This requires users to either provide a custom version of this file on their builds or to manually edit it with each update. Since many do not build their own, the first option is not available to them. Manually editing the file with each update will cause a failure to start containers set to auto-start upon rebooting into the update. 1. https://forum.openwrt.org/t/openwrt-arm64-quick-lxc-howto-guide-lms-in-debian-system-in-lxc-container/99835 Signed-off-by: John Audia <graysky@archlinux.us>
* lxc: update to 4.0.10Rosen Penev2021-08-28
| | | | | | | | | | | | | | Remove getline patch. It seems to be for uClibc, which is no longer in the tree. Remove commands patch. Issue was fixed upstream. Same with the tests patch. Remove gpg patch. It's an upstream backport. Refreshed others. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* lxc: add patch to switch GPG serverJosef Schlehofer2021-07-10
| | | | | | | | | | | By default, there was used sks-keyservers.net pool, which has invalid SSL certificate and they also announced that their service is deprecate and no longer maintained. Use the same GPG server as LXC is using by default in the newer releases. Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
* lxc: fix build without seccomp if libseccomp builtEneas U de Queiroz2021-02-25
| | | | | | | This fixes compiling lxc without seccomp support if libseccomp is already installed to the staging dir. Patches were applied upstream. Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
* lxc: update to 4.0.5Rosen Penev2020-11-19
| | | | | | Refreshed patches. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* treewide: replace `which` with `command -v`Paul Spooren2020-08-09
| | | | | | | | | | Fix shellcheck SC2230 > which is non-standard. Use builtin 'command -v' instead. Once applied to everything concerning OpenWrt we can disable the busybox feature `which` and save 3.8kB. Signed-off-by: Paul Spooren <mail@aparcar.org>
* lxc: bump versionMartin Hammer2020-05-25
| | | | | Signed-off-by: Martin Hammer <34623636+hammer-is@users.noreply.github.com> Signed-off-by: martin <martin@DESKTOP-C822DHJ.lan>
* 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: use -minterlink-mips16 only with USE_MIPS16Eneas U de Queiroz2020-05-23
| | | | | | | The flag is either not supported or not needed unless there's mixed mips/mips16 code. Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
* lxc: group everything under lxc menuEneas U de Queiroz2020-05-22
| | | | | | | This makes every lxc-* package depend on lxc so that they are grouped under the lxc menu. Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
* lxc: don't build for ARCRosen Penev2020-05-22
| | | | | | Similar to libseccomp, ARC is completely unsupported. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* lxc: cleanup Makefile and outdated configure optionsRosen Penev2020-05-22
| | | | | | Added PKG_NO_MIPS16 as MIPS16 is no longer supported. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* lxc: remove luaRosen Penev2020-05-22
| | | | | | Lua support seems to be gone from LXC 4. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* 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: Fix pkgconfig fileRosen Penev2019-11-27
| | | | | | It's pointing to the host. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* cgroups-mount,docker-ce,lxc: rework kernel feature dependencyYousong Zhou2019-09-12
| | | | | | | | | | | | | Fix that KERNEL_CGROUPS is enabled (selected) automatically along with cgroups-mount Replace "if PACKAGE_docker-ce" with a menu to avoid circular denpendency issue involving PACKAGE_docker-ce, PACKAGE_cgroups-mount and KERNEL_CGRUOPS docker-ce, lxc: replace KERNEL_LXC_MISC with more specific options Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* treewide: Change .*GPL.*+ licenses to SPDX compatible identifierSven Eckelmann2019-09-10
| | | | | | | | The CONTRIBUTING.md requests an (or multiple) SPDX identifier for GPL licenses. But a lot of packages did use a different, non-SPDX style with a "+" at the end instead of "-or-later". Signed-off-by: Sven Eckelmann <sven@narfation.org>
* Merge pull request #8999 from neheb/lxRosen Penev2019-05-17
|\ | | | | lxc: Backport uClibc patch
| * lxc: Backport uClibc patchRosen Penev2019-05-15
| | | | | | | | | | | | Fixes compilation Signed-off-by: Rosen Penev <rosenp@gmail.com>
* | lxc: hide seccomp support for arcEneas U de Queiroz2019-05-15
|/ | | | | | | libseccomp does not compile for arc, so we can't show that option for arc. Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
* lxc: Disable use of unwanted libraries explicityDaniel F. Dickinson2019-01-27
| | | | | | | | | | Otherwise one gets a failure if the libraries (e.g. Python header file) exist in the build system. Worse in some cases is host headers being found if one doesn't specifically disable a library search in autotools. It is especially important that Python is disabled by default. Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
* lxc: bump PKG_RELEASE after backporting nl patchRafał Miłecki2018-07-29
| | | | Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* lxc: nl: avoid NULL pointer dereferenceRafał Miłecki2018-07-29
| | | | | | This backports upstream fix from the master branch. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* 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>
* utils/lxc: disable gnutls during configureKarl Vogel2017-10-26
| | | | | | | | | | | Previous versions of LXC never compiled in gnutls support due to a bug in the configure script. As other TLS implementations are not supported and the feature was disabled in previous builds, disable it during configure. See https://github.com/lxc/lxc/pull/1360 for details regarding the bug in the autoconf of the previous versions. Signed-off-by: Karl Vogel <karl.vogel@gmail.com>
* lxc: bump to 2.1.1Marko Ratkaj2017-10-23
| | | | | | | | | This is the first bugfix release for LXC 2.1. Full list of changes can be found here: https://linuxcontainers.org/lxc/news/ Signed-off-by: Marko Ratkaj <marko.ratkaj@sartura.hr>
* lxc: bump to 2.1.0Marko Ratkaj2017-10-19
| | | | | | | | | | | | Bump LXC package from 1.1.5 to 2.1.0. Version 2.x includes many improvements and optimizations. https://linuxcontainers.org/lxc/news/ Some tools like lxc-top are rewritten in C and are no longer broken and dependent on lua. Signed-off-by: Marko Ratkaj <marko.ratkaj@sartura.hr>
* treewide: run "make check FIXUP=1"Etienne Champetier2017-08-29
| | | | | | | | | | fix Makefile chmod (644) replace MD5SUM with HASH add PKG_MIRROR_HASH when PKG_SOURCE_PROTO:=git (PKG_SOURCE_PROTO:=svn tarballs are not reproducible for now) Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
* 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>
* utils/lxc: lxc-create templates depend on flockDaniel Dickinson2016-03-12
| | | | Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com>
* lxc: update to version 1.1.5Mak Krnic2016-02-10
|
* lxc: bump version to 1.1.3Marko Ratkaj2015-09-27
| | | | Signed-off-by: Marko Ratkaj <marko.ratkaj@sartura.hr>
* lxc: fix build on mpc85xxDaniel Golle2015-06-09
| | | | | | | | Initialize ret to 0 so compiler no longer complains about monitor.c: In function 'lxc_monitor_open': monitor.c:212:5: error: 'ret' may be used uninitialized in this function [-Werror=maybe-uninitialized] Signed-off-by: Daniel Golle <daniel@makrotopia.org>