From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: [PATCH OSSTEST v3 06/22] ts-host-install: split the "di" from the "host" command line Date: Wed, 24 Jun 2015 16:32:25 +0100 Message-ID: <1435159961-22292-6-git-send-email-ian.campbell@citrix.com> References: <1435159944.28264.295.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1435159944.28264.295.camel@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: ian.jackson@eu.citrix.com Cc: Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org (i.e. the bit before/after the -- marker). When abstracting over different bootloaders in a future patch this will be convenient since it allows the code to add to either. Signed-off-by: Ian Campbell Acked-by: Ian Jackson --- ts-host-install | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/ts-host-install b/ts-host-install index 04f065f..57a6b3f 100755 --- a/ts-host-install +++ b/ts-host-install @@ -175,8 +175,8 @@ sub setup_pxeboot_firstboot($) { my $d_i= $ho->{Tftp}{DiBase}.'/'.$r{arch}.'/'.$c{TftpDiVersion}.'-'.$ho->{Suite}; - my @installcmdline= qw(vga=normal); - push @installcmdline, di_installcmdline_core($ho, $ps_url, %xopts); + my @dicmdline= qw(vga=normal); + push @dicmdline, di_installcmdline_core($ho, $ps_url, %xopts); my $src_initrd= "$d_i/initrd.gz"; my @initrds= "$ho->{Tftp}{Path}/$src_initrd"; @@ -265,26 +265,27 @@ END my $initrd= "$ho->{Tftp}{TmpDir}$ho->{Name}--initrd.gz"; system_checked("cat -- @initrds >$ho->{Tftp}{Path}$initrd"); - push @installcmdline, "domain=$c{TestHostDomain}"; - push @installcmdline, + push @dicmdline, "domain=$c{TestHostDomain}"; + push @dicmdline, get_host_property($ho, "install-append $ho->{Suite}", ''), get_host_property($ho, "install-append $ho->{Suite} $r{arch}", ''); my $console = get_host_native_linux_console($ho); - push @installcmdline, "console=$console" unless $console eq "NONE"; + push @dicmdline, "console=$console" unless $console eq "NONE"; - push @installcmdline, qw(--); + my @hocmdline; # See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=762007 for # why this is repeated. - push @installcmdline, "console=$console" unless $console eq "NONE"; + push @hocmdline, "console=$console" unless $console eq "NONE"; - push @installcmdline, + push @hocmdline, get_host_property($ho, "linux-boot-append $ho->{Suite}", ''), get_host_property($ho, "linux-boot-append $ho->{Suite} $r{arch}", ''); - my $installcmdline= join ' ', @installcmdline; + my $dicmd= join ' ', @dicmdline; + my $hocmd= join ' ', @hocmdline; setup_pxeboot($ho, <