Stéphane Graber
746b9f4303
lxc.mount.hook: Skip cpu sysfs logic if missing target
...
Closes #625
Suggested-by: amateur80lvl
Signed-off-by: Stéphane Graber <stgraber@stgraber.org >
2024-01-14 16:30:24 -05:00
Stéphane Graber
3c34a19818
meson: Cleanup build files
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com >
2022-03-09 11:48:12 -05:00
Christian Brauner
e5af758b36
build: use jinja2 templating
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com >
2021-11-05 13:49:40 +01:00
Christian Brauner
d90ab57e62
build: add share/ directory
...
This was somehow missing until now.
Fixes: #494
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com >
2021-10-20 10:28:50 +02:00
Christian Brauner
a5681e523f
build: remove autotools
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com >
2021-09-02 17:31:12 +02:00
Simon Deziel
427caeddd8
lxc.mount.hook: reduce calls to basename
...
Signed-off-by: Simon Deziel <simon@sdeziel.info >
2021-06-02 08:56:39 -04:00
Simon Deziel
50c32b5e21
lxc.mount.hook: make shellcheck clean
...
Signed-off-by: Simon Deziel <simon@sdeziel.info >
2021-06-02 08:56:35 -04:00
Christian Brauner
791adfe130
lxc.mount.hook: adapt to new /sys/devices/system/cpu virtualization
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com >
2021-05-26 13:26:04 +02:00
Jakub Skokan
24ee58a5c7
mount hook: mount /sys/devices/system/cpu/online
...
Signed-off-by: Jakub Skokan <jakub.skokan@havefun.cz >
2019-05-21 15:50:54 +02:00
tomponline
43276460a8
hooks: Adds --skip-cgroup-mounts flag to lxc.mount.hook script.
...
This can be used to avoid instability in LXCFS when running on RHEL 7 hosts.
Signed-off-by: tomponline <tomp@tomp.uk >
2019-02-06 19:49:11 +00:00
Stéphane Graber
cd14d99205
hook: Fix typo in previous fix
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com >
2016-03-22 03:46:59 -04:00
Stéphane Graber
71f0cd30d7
hook: Don't fail when root mountpoint is a symlink
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com >
2016-03-22 03:24:17 -04:00
Stéphane Graber
7f377c96a0
hook: don't use mountpoint
...
It's not very reliable (had it fail on one of my servers) and since
we're already iterating through a list of mountpoints, it's also
completely unneeded.
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com >
2016-03-20 12:12:06 -04:00
Stéphane Graber
77171c86c5
Fix lxcfs mount handling with newer lxc
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com >
2016-03-18 23:23:17 -04:00
Stéphane Graber
f51072f587
Fix lxcfs passthrough
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com >
2016-03-12 00:14:50 -05:00
Stéphane Graber
358b8c7d03
Mount /proc files even if /sys/fs/cgroup is disabled
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com >
2016-03-07 13:56:47 -05:00
Serge Hallyn
9fc68fe328
don't use sh -u
...
That causes failure when we check (with test -n) for an env variable which does not exist.
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com >
2016-01-07 14:51:56 -08:00
Serge Hallyn
5f4744eaba
Don't assume lxc knows about cgroup namespaces
...
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com >
2015-12-31 17:47:45 -08:00
Serge Hallyn
1edd4d20bf
don't mount lxcfs cgroups if we have cgroup namespaces
...
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com >
2015-12-31 17:30:05 -08:00
Serge Hallyn
5d6df2dde9
Add a hook to make reboot sleep 0.5s (v2)
...
To ensure that the new container does not get cached directory entry
information from before we removed the container's cgroup using cgroupfs.
Changelog: make sure lxc.reboot.hook shows up in 'make dist'
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com >
2015-11-12 14:32:13 -06:00
Wolfgang Bumiller
382734028d
lxc mount hook: whitespace fixup
...
Acked-by: Serge Hallyn <serge.hallyn@ubuntu.com >
2015-10-21 17:30:22 -05:00
Wolfgang Bumiller
30dacc001d
lxc mount hook: add missing space before ]
...
Otherwise [ interprets the ] as part of the path and also
errors about a missing ']'
Acked-by: Serge Hallyn <serge.hallyn@ubuntu.com >
2015-10-21 17:30:12 -05:00
Aljaz Meznaric
59c982dc78
Fixed issue #37
2015-10-09 11:54:12 +02:00
Serge Hallyn
0cb97d80d1
fix symlink
...
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com >
2015-09-03 08:46:52 -05:00
Serge Hallyn
f0683e5c9a
lxc mount hook: implement stgraber's suggestions
...
revert to using sh and use symlinks instead of extra mounts.
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com >
2015-09-02 23:00:11 -05:00
Serge Hallyn
8d00b97a57
Update lxc mount hook to ovver a mount per co-mounted controller
...
If cpu,cpuacct are comounted, then in addition to cpu,cpuacct make
mounts for 'cpu' and 'cpuacct'.
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com >
2015-09-02 22:30:12 -05:00
Serge Hallyn
8e8b8658f0
lxc mount hook: don't mount lxcfs fs for any controller already setup
...
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com >
2015-06-24 18:26:30 -05:00
Stéphane Graber
8784abb5d1
LXC hook fixes
...
- Detects whether cgroups are enabled in the container's config
- Don't mount a second tmpfs on /sys/fs/cgroup
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com >
2015-04-07 16:17:40 -04:00
Stéphane Graber
ff767ce426
hook: Don't spam /etc/mtab
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com >
2015-01-28 15:35:06 +01:00
Stéphane Graber
2ab697dcb0
Make the LXC hook more robust
...
Don't fail if /sys/fs/cgroup or some proc files don't exist.
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com >
2015-01-28 10:07:05 +01:00
Stéphane Graber
7456f3b553
Update the lxc hook and add a LXC config file
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com >
2015-01-20 13:07:06 -05:00