[lxc] Ubuntu likes runlevel 5

This commit is contained in:
Chris Lundquist 2016-05-14 07:13:49 +00:00 committed by Megan Marsh
parent 3a136aad77
commit ddbb584235
1 changed files with 3 additions and 0 deletions

View File

@ -92,6 +92,9 @@ func (s *StepWaitInit) waitForInit(state multistep.StateBag, cancel <-chan struc
if currentRunlevel == targetRunlevel { if currentRunlevel == targetRunlevel {
log.Printf("Container finished init.") log.Printf("Container finished init.")
break break
} else if currentRunlevel > targetRunlevel {
log.Printf("Expected Runlevel %d, Got Runlevel %s, continuing", targetRunlevel, currentRunlevel)
break
} }
/*log.Println("Attempting SSH connection...") /*log.Println("Attempting SSH connection...")