Commit Graph

11322 Commits

Author SHA1 Message Date
Stéphane Graber
a79b0663b4
meson: Only build tools when requested
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-27 22:02:37 -04:00
Stéphane Graber
b3d189920a
meson: Add tools option
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-27 22:02:36 -04:00
Stéphane Graber
24dcd86d9a
meson: Re-shuffle PAM
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-27 22:02:35 -04:00
Stéphane Graber
54f1ddb39d
meson_options: Move entries around
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-27 22:02:34 -04:00
Stéphane Graber
771050e5c4
Merge pull request #4120 from brauner/2022-05-18.meson.pam
build: add pam_cgfs to meson
2022-05-24 10:26:38 -04:00
Christian Brauner
d5e2bc9750
Merge pull request #4121 from sitano/ivan_fix_pidfds_loglvl
lxc_can_use_pidfd: don't log error if pidfds not supported, trace
2022-05-21 09:23:57 +02:00
Ivan Prisyazhnyy
4afaadf02c lxc_can_use_pidfd: don't log error if pidfds not supported, trace
Signed-off-by: Ivan Prisyazhnyy <john.koepi@gmail.com>
2022-05-20 16:30:30 +02:00
Christian Brauner
8c8e72826f
pam: fix compiler warnings
Signed-off-by: Christian Brauner (Microsoft) <christian.brauner@ubuntu.com>
2022-05-19 11:49:48 +02:00
Christian Brauner
8c48813a6c
build: add pam_cgfs to meson
Signed-off-by: Christian Brauner (Microsoft) <christian.brauner@ubuntu.com>
2022-05-19 11:49:48 +02:00
Stéphane Graber
9647df5464
Merge pull request #4115 from terceiro/rename-completion
bash: rename main bash completion file
2022-05-15 16:58:16 -04:00
Christian Brauner
2b5efbcbe9
Merge pull request #4117 from stgraber/master
More meson coverage
2022-05-13 00:13:59 +02:00
Stéphane Graber
d9121fff7b
meson: Add remaining scripts
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-12 22:24:04 +02:00
Stéphane Graber
51f90ad973
meson: Re-organize dir variables
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-12 22:24:03 +02:00
Stéphane Graber
e4e52844c7
meson: Add init helper scripts
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-12 22:24:02 +02:00
Stéphane Graber
c2931f74c5
meson: Add common configs
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-12 22:24:01 +02:00
Stéphane Graber
7c927048f1
meson: Add SELinux configs
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-12 22:23:59 +02:00
Stéphane Graber
9d18059b8d
meson: Add global config
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-12 22:23:58 +02:00
Antonio Terceiro
25d1b3fb09 bash: rename main bash completion file
Since the `lxc` binary is actually provided by lxd, the main
bash-completion file needs to be moved away to not conflict with a bash
completion file provided for the `lxc` binary by lxd.

Signed-off-by: Antonio Terceiro <terceiro@debian.org>
2022-05-12 10:47:18 -03:00
Christian Brauner
053cb087b6
Merge pull request #4113 from stgraber/master
More meson tweaks
2022-05-08 00:06:52 +02:00
Stéphane Graber
b3da01d799
meson: Add doc examples
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-07 18:47:12 +02:00
Stéphane Graber
7609de1826
meson: Rework options
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-07 18:47:11 +02:00
Christian Brauner
5730c268f1
Merge pull request #4110 from stgraber/master
More meson fixes
2022-05-02 07:34:14 -07:00
Stéphane Graber
181cd6dc51
meson: Use dependencies for pkgconfig
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-02 14:40:42 +02:00
Stéphane Graber
d841229ea5
meson: Bump minimal version
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-02 14:22:25 +02:00
Stéphane Graber
18ad1086fa
meson: Simplify pc handling
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-02 14:22:24 +02:00
Christian Brauner
c62dd66bd6
Merge pull request #4109 from stgraber/master
More meson fixes
2022-05-01 06:20:55 -07:00
Stéphane Graber
4a858b5665
meson: Add bash completion
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-01 12:21:53 +02:00
Stéphane Graber
1404fcb81f
meson: Include the /var paths
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-01 12:05:08 +02:00
Stéphane Graber
6dfabed1fa
meson: Include rootfs dir
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-01 12:05:07 +02:00
Stéphane Graber
0860988ed9
meson: Setup pkgconfig
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-01 11:50:18 +02:00
Stéphane Graber
1a9afaccbf
meson: Include headers
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-01 11:50:17 +02:00
Stéphane Graber
31985a040d
meson: Fix hook install locations
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-01 10:24:35 +02:00
Stéphane Graber
4c7c1431d4
meson: Fix library version
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-01 10:24:34 +02:00
Stéphane Graber
0940e81168
meson: Add lxc-attach
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-01 10:24:33 +02:00
Stéphane Graber
2f1bf5f58b
meson: Fix internal binaries
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-01 10:24:32 +02:00
Stéphane Graber
46b9598f1a
meson: Fix template installation location
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-01 10:24:31 +02:00
Stéphane Graber
a15711569e
meson: Get test binaries to match autotools
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-01 10:24:30 +02:00
Christian Brauner
0c0f740fba
Merge pull request #4108 from stgraber/master
Meson improvements
2022-04-29 09:51:29 +02:00
Stéphane Graber
14746eee9d
Update MAINTAINERS file
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-04-28 23:12:30 -04:00
Stéphane Graber
23ba778f9f
meson: Fix unix epoch
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-04-28 22:54:41 -04:00
Stéphane Graber
aa326e18e9
meson: Update run_command calls
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-04-28 22:54:40 -04:00
Stéphane Graber
4738079024
meson: Install the test binaries
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-04-28 22:54:39 -04:00
Stéphane Graber
20b03401be
meson: Cleanup build configs
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-04-28 22:17:01 -04:00
Stéphane Graber
df05cddc83
meson: Remove non-existent tests
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-04-28 17:55:11 -04:00
Stéphane Graber
5a7b9ce677
Merge pull request #4101 from memnoth/fix-fail-exec-dnsmasq
lxc-net.in: fix failure executing dnsmasq
2022-04-02 20:33:25 -04:00
Leesoo Ahn
f97607e02c lxc-net.in: fix failure executing dnsmasq
Failure executing dnsmasq happens if misc dir is not existed as the
following error messages.

localhost.localdomain systemd[1]: Starting LXC network bridge setup...
localhost.localdomain lxc-net[5754]: dnsmasq: cannot open or create lease file /usr/local/var/lib/misc/dnsmasq.lxcbr0.leases: No such file or directory
localhost.localdomain dnsmasq[5754]: cannot open or create lease file /usr/local/var/lib/misc/dnsmasq.lxcbr0.leases: No such file or directory
localhost.localdomain dnsmasq[5754]: FAILED to start up
localhost.localdomain lxc-net[5727]: Failed to setup lxc-net.
localhost.localdomain lxc-net[5727]: Failed to setup lxc-net.
localhost.localdomain systemd[1]: lxc-net.service: Main process exited, code=exited, status=1/FAILURE
localhost.localdomain systemd[1]: lxc-net.service: Failed with result 'exit-code'.
localhost.localdomain systemd[1]: Failed to start LXC network bridge setup.

Modify 'lxc-net' script to call 'mkdir -p' command if the directory is not
existed before executing dnsmasq daemon.

Signed-off-by: Leesoo Ahn <lsahn@ooseel.net>
2022-04-02 20:23:21 +09:00
Stéphane Graber
d09a31dba6
Merge pull request #4099 from corubba/feature/stop-order
tools: lxc-autostart: Reverse order on stop
2022-03-30 11:40:16 -04:00
corubba
8f8d14f72d tools: lxc-autostart: Reverse order on stop
As it was already discussed in lxc/lxd#2082, containers should be
stopped in the opposite order they are started in. LXD does so already,
lxc should do the same.

Signed-off-by: Corubba Smith <corubba@gmx.de>
2022-03-27 01:36:20 +01:00
Christian Brauner
4ad335d07a
Merge pull request #4098 from memnoth/mnth/fastpath-mkdir_p
utils: add fastpath routine on mkdir_p function
2022-03-26 17:40:02 +01:00
Leesoo Ahn
0a0911faee utils: add fastpath routine on mkdir_p function
Call 'access' to examine whether 'dir' is already existed or not instead
of directly calling 'mkdir' on each dir name separated by slash '/' even though
'dir' is existed.

Signed-off-by: Leesoo Ahn <lsahn@ooseel.net>
2022-03-26 22:22:10 +09:00