Disable container support in containers
Systemd-nspawn doesn't support nesting, so providing nixos-container inside a container doesn't make sense.
This commit is contained in:
parent
1ad9a654be
commit
b0b3fa928a
@ -140,7 +140,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
config = {
|
config = mkIf (!config.boot.isContainer) {
|
||||||
|
|
||||||
systemd.services."container@" =
|
systemd.services."container@" =
|
||||||
{ description = "Container '%i'";
|
{ description = "Container '%i'";
|
||||||
@ -222,7 +222,8 @@ in
|
|||||||
postStart =
|
postStart =
|
||||||
''
|
''
|
||||||
# This blocks until the container-startup-done service
|
# This blocks until the container-startup-done service
|
||||||
# writes something to this pipe.
|
# writes something to this pipe. FIXME: it also hangs
|
||||||
|
# until the start timeout expires if systemd-nspawn exits.
|
||||||
read x < $root/var/lib/startup-done
|
read x < $root/var/lib/startup-done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user