From: Ian Campbell Subject: [OSSTEST PATCH] ts-debian-install: work around xen-create-image reliance on xend Date: Wed, 18 Dec 2013 09:36:41 +0000 Message-ID: <1387359401-22521-1-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: ian.jackson@eu.citrix.com Cc: Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org The xen-tools script contains some sanity checks of the xend configuration and fails if the configuration file is not present. This issue has been reported upstream http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=732456. Workaround this issue by creating a dummy xend-config.sxp if it does not already exist. Include network- and vif- script options to keep the sanity checks happy. The workaround is enabled for all releases up to and including Wheezy in the hopes that this will be fixed by the time Jessie is released, if not then the osstest pushgate will hopefully catch this when Jessie is pushed to it. Signed-off-by: Ian Campbell --- ts-debian-install | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/ts-debian-install b/ts-debian-install index 519edc9..58ea743 100755 --- a/ts-debian-install +++ b/ts-debian-install @@ -62,7 +62,20 @@ sub ginstall () { $initrd =~ s,/vmlinuz-,/initrd.img-, or die "$initrd ?"; } my $initrd_opt = $initrd eq 'none' ? '' : "--initrd $initrd"; - + + if ($ho->{Suite} =~ m/lenny|squeeze|wheezy/) { + target_cmd_root($ho, <>/etc/xen/xend-config.sxp + echo "(network-script osstest)" >>/etc/xen/xend-config.sxp + fi +END + } target_cmd_root($ho, <{Ether} \\ -- 1.7.10.4