From: Wei Liu Subject: [PATCH OSSTEST v2 04/11] Force sysvinit with Jessie Date: Mon, 15 Jun 2015 14:36:32 +0100 Message-ID: <1434375399-19107-5-git-send-email-wei.liu2@citrix.com> References: <1434375399-19107-1-git-send-email-wei.liu2@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Z4UZF-0000N9-7w for xen-devel@lists.xenproject.org; Mon, 15 Jun 2015 13:36:49 +0000 In-Reply-To: <1434375399-19107-1-git-send-email-wei.liu2@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Xen-devel Cc: Wei Liu , ian.jackson@eu.citrix.com, Ian Campbell List-Id: xen-devel@lists.xenproject.org From: Ian Campbell Systemd has some issues: 1. It doesn't honor osstest-confirm-booted service, which breaks ts-leak-check. 2. It kills the ssh connection before 'init 6' has a chance return, which breaks ts-host-reboot. Fall back to SysV init for now. Signed-off-by: Ian Campbell [wei: rewrite commit message and code comment] Signed-off-by: Wei Liu --- Osstest/Debian.pm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm index c26f88e..fa94210 100644 --- a/Osstest/Debian.pm +++ b/Osstest/Debian.pm @@ -903,6 +903,18 @@ in-target update-initramfs -u -k all END } + # Systemd has some issues: + # 1. it doesn't honor osstest-confirm-booted service, + # which breaks ts-leak-check. + # 2. it kills the ssh connection before 'init 6' has a chance + # return, which breaks ts-host-reboot. + # Fall back to SysV init for now. + if ( $ho->{Suite} =~ /jessie/ ) { + preseed_hook_command($ho, 'late_command', $sfx, <{Flags}{'need-uboot-bootscr'}; -- 1.9.1