1 |
A quick grep in the tree shows the following existing cases (wrapped for line |
2 |
length). |
3 |
|
4 |
$ git grep -E \ |
5 |
'keyword .*(lxc|systemd-nspawn|vserver|prefix|openvz|uml|jail|xen)' |
6 |
sys-apps/kmod/files/kmod-static-nodes-r1: |
7 |
keyword -lxc -systemd-nspawn |
8 |
sys-fs/eudev/files/udev-postmount: |
9 |
keyword -vserver -lxc |
10 |
sys-fs/zfs/files/zfs-0.6.1-gentoo-openrc-dependencies.patch: |
11 |
keyword -lxc -openvz -prefix -vserver |
12 |
sys-fs/zfs/files/zfs-0.6.5-fix-openrc-scripts.patch: |
13 |
keyword -lxc -openvz -prefix -vserver |
14 |
sys-power/nut/files/nut.powerfail.initd: |
15 |
keyword -jail -lxc -openvz -prefix -uml -vserver -xenu -timeout |
16 |
|
17 |
The only one of those I can speak knowledgeably about is sys-power/nut. |
18 |
That script signals the UPS to cut the power, and is intended to be the very |
19 |
very last shutdown script ever called on a box (so it has a sleep forever bit |
20 |
at the end). |
21 |
|
22 |
Does it make sense in a container? That depends on how the container is |
23 |
configured... it's got the right details for the container parent's UPS, then |
24 |
you certainly don't want it to fire. If it had details to tell the parent to |
25 |
just terminate it, then it would be correct. |
26 |
|
27 |
Rather than replacing all of the system-specific keywords, can we make |
28 |
'container' into an alias that expands to the full list of known container |
29 |
types? That way, if there is an init script that is specific to some container |
30 |
type, it would still be usable. |
31 |
|
32 |
One hypothetical case that does come to mind is some container-type-specific setup script. |
33 |
Say there is 'foocontainerFS' and it requires special mount parameters during |
34 |
the startup of the container, or the container wants some special daemon to be |
35 |
running... both of these cases could use: |
36 |
keywords -containers foocontainer |
37 |
|
38 |
-- |
39 |
Robin Hugh Johnson |
40 |
Gentoo Linux: Developer, Infrastructure Lead, Foundation Trustee |
41 |
E-Mail : robbat2@g.o |
42 |
GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85 |