]> xenbits.xensource.com Git - people/liuw/osstest.git/commitdiff
Force sysvinit with Jessie
authorIan Campbell <ian.campbell@citrix.com>
Fri, 12 Jun 2015 10:24:11 +0000 (11:24 +0100)
committerIan Jackson <ian.jackson@eu.citrix.com>
Tue, 23 Jun 2015 15:43:54 +0000 (16:43 +0100)
Systemd  doesn't honor osstest-confirm-booted service, which breaks
ts-leak-check.  Fall back to SysV init for now.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
[wei: rewrite commit message and code comment]
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Osstest/Debian.pm

index 26363af64c63f1d137995bfbfacbb2eaff8d499b..905758f05b81f5a96bf84c78ec9add0cba6f21ee 100644 (file)
@@ -945,6 +945,14 @@ in-target update-initramfs -u -k all
 END
     }
 
+    # Systemd doesn't honor osstest-confirm-booted service, which
+    # breaks ts-leak-check.  Fall back to SysV init for now.
+    if ( $ho->{Suite} =~ /jessie/ ) {
+       preseed_hook_command($ho, 'late_command', $sfx, <<END)
+in-target apt-get install -y sysvinit-core
+END
+    }
+
     my @extra_packages = ();
     push(@extra_packages, "u-boot-tools") if $ho->{Flags}{'need-uboot-bootscr'};