From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Jackson Subject: [OSSTEST PATCH 03/12] ts-host-install: set `IPAPPEND 2' (if interface isn't forced) Date: Tue, 11 Feb 2014 15:25:45 +0000 Message-ID: <1392132354-7594-4-git-send-email-ian.jackson@eu.citrix.com> References: <1392132354-7594-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WDFE9-00086r-5F for xen-devel@lists.xenproject.org; Tue, 11 Feb 2014 15:26:25 +0000 In-Reply-To: <1392132354-7594-1-git-send-email-ian.jackson@eu.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@lists.xenproject.org Cc: Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org This causes BOOTIF= to appear on command line. This makes d-i use that interface. (See also Debian #615600.) This is a better approach to interface name instability than setting the force interface host property. Signed-off-by: Ian Jackson --- ts-host-install | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ts-host-install b/ts-host-install index 5c0018e..8e119ca 100755 --- a/ts-host-install +++ b/ts-host-install @@ -174,8 +174,10 @@ sub setup_pxeboot_firstboot($) { system qw(rm -rf --),"$initrd_overlay.d"; mkdir "$initrd_overlay.d" or die "$initrd_overlay.d: $!"; + my $ipappend = 2; my $wantphysif= get_host_property($ho,'interface force','auto'); if ($wantphysif ne 'auto') { + $ipappend = 0; die "need Ether for $ho->{Name} ($wantphysif)" unless defined $ho->{Ether}; system_checked(qw(mkdir -p --), "$initrd_overlay.d/etc/udev/rules.d"); @@ -219,6 +221,7 @@ label overwrite menu default kernel $kernel append $installcmdline + ipappend $ipappend default overwrite END } -- 1.7.10.4