From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH OSSTEST v2 04/11] Force sysvinit with Jessie Date: Mon, 15 Jun 2015 16:40:13 +0100 Message-ID: <1434382813.13744.26.camel@citrix.com> References: <1434375399-19107-1-git-send-email-wei.liu2@citrix.com> <1434375399-19107-5-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.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Z4XR9-0000cd-8N for xen-devel@lists.xenproject.org; Mon, 15 Jun 2015 16:40:39 +0000 In-Reply-To: <1434375399-19107-5-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: Wei Liu Cc: Xen-devel , ian.jackson@eu.citrix.com List-Id: xen-devel@lists.xenproject.org On Mon, 2015-06-15 at 14:36 +0100, Wei Liu wrote: > 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] Those are fine by me, thanks. > 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, < +in-target apt-get install -y sysvinit-core > +END > + } > + > my @extra_packages = (); > push(@extra_packages, "u-boot-tools") if $ho->{Flags}{'need-uboot-bootscr'}; >