From ddbb584235aecce9b7c4f91778fd6371f1beb8a7 Mon Sep 17 00:00:00 2001 From: Chris Lundquist Date: Sat, 14 May 2016 07:13:49 +0000 Subject: [PATCH] [lxc] Ubuntu likes runlevel 5 --- builder/lxc/step_wait_init.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/builder/lxc/step_wait_init.go b/builder/lxc/step_wait_init.go index 180f83f73..5b7d8c5cb 100644 --- a/builder/lxc/step_wait_init.go +++ b/builder/lxc/step_wait_init.go @@ -92,6 +92,9 @@ func (s *StepWaitInit) waitForInit(state multistep.StateBag, cancel <-chan struc if currentRunlevel == targetRunlevel { log.Printf("Container finished init.") break + } else if currentRunlevel > targetRunlevel { + log.Printf("Expected Runlevel %d, Got Runlevel %s, continuing", targetRunlevel, currentRunlevel) + break } /*log.Println("Attempting SSH connection...")