From b37d6d8996cf9270d5a74e5bec605b79ec35b862 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 26 May 2016 15:36:15 +0200 Subject: [PATCH] Fix failure to start old containers The existence of $root/var/lib/private/host-notify as a socket prevented a bind mount: container foo[8083]: Failed to create mount point /var/lib/containers/foo/var/lib/private/host-notify: No such device or address --- nixos/modules/virtualisation/containers.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/virtualisation/containers.nix b/nixos/modules/virtualisation/containers.nix index fca21a8610be..dc65e4940549 100644 --- a/nixos/modules/virtualisation/containers.nix +++ b/nixos/modules/virtualisation/containers.nix @@ -338,7 +338,7 @@ in fi ''} - + rm -f $root/var/lib/private/host-notify # Run systemd-nspawn without startup notification (we'll # wait for the container systemd to signal readiness).