summary refs log tree commit diff
path: root/nixos/modules/virtualisation/containers.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/modules/virtualisation/containers.nix')
-rw-r--r--nixos/modules/virtualisation/containers.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/nixos/modules/virtualisation/containers.nix b/nixos/modules/virtualisation/containers.nix
index 9be79cec369..097dd3993eb 100644
--- a/nixos/modules/virtualisation/containers.nix
+++ b/nixos/modules/virtualisation/containers.nix
@@ -140,7 +140,7 @@ in
   };
 
 
-  config = {
+  config = mkIf (!config.boot.isContainer) {
 
     systemd.services."container@" =
       { description = "Container '%i'";
@@ -222,7 +222,8 @@ in
         postStart =
           ''
             # 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
           '';