From nobody Sat Feb 7 07:31:20 2026 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1556296963; cv=none; d=zoho.com; s=zohoarc; b=lFuB4OTPQvQWqP0XqdxGl1SndEu2PnE9USYXxvZiGvdMR26BqNEoFZ0+aCb27m78ZsiewnpF+AVk2TvtcHBlrs4RrZlYmOnQJDvGW+Z4YgKyvSJIkBigaBvG0ORG8Q3w6kAfZuPzLGj3jm4w7nJ3I+CCIvOxMA3Rr0IKmi2Wu+k= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1556296963; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=ZWM/5s+iftaAJ31eI2j2LZ3UNl0x6q8+DvJO/cAF4CM=; b=giShs7rwIrib7jnlsD9riZr6DJVnntC7PyQejQLJtHMkGDRLQoso7Yq3l04J2sSYxHwkB+vS4oSAFl435htbQcuzvO51zp++57cFF9tvU93uCaCChuf7d+m9E+lDLs8pOxQuJeWNe6CUl6erXwDSndOR8hLkkOoEP7R53RwZUis= ARC-Authentication-Results: i=1; mx.zoho.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1556296963153212.4153595931857; Fri, 26 Apr 2019 09:42:43 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hK3uf-00084R-FY; Fri, 26 Apr 2019 16:41:25 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hK3ue-00083v-7O for xen-devel@lists.xenproject.org; Fri, 26 Apr 2019 16:41:24 +0000 Received: from SMTP03.CITRIX.COM (unknown [162.221.156.55]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id 207be34f-6842-11e9-843c-bc764e045a96; Fri, 26 Apr 2019 16:41:23 +0000 (UTC) X-Inumbo-ID: 207be34f-6842-11e9-843c-bc764e045a96 X-IronPort-AV: E=Sophos;i="5.60,398,1549929600"; d="scan'208";a="84519669" From: Ian Jackson To: Date: Fri, 26 Apr 2019 17:39:50 +0100 Message-ID: <20190426164002.22381-4-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190426164002.22381-1-ian.jackson@eu.citrix.com> References: <20190426164002.22381-1-ian.jackson@eu.citrix.com> MIME-Version: 1.0 Subject: [Xen-devel] [OSSTEST PATCH 03/15] arch replumbing: ts-host-install: Move $kern_arch_info setting X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Ian Jackson Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" We are going to want to do this after selecthost. No functional change. Signed-off-by: Ian Jackson --- ts-host-install | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/ts-host-install b/ts-host-install index 45f04764..3c14f171 100755 --- a/ts-host-install +++ b/ts-host-install @@ -31,7 +31,7 @@ my $debconf_priority; my $poweron_test_only; =20 our %xopts; -our $kern_arch_info; +our $build; =20 while (@ARGV and $ARGV[0] =3D~ m/^-/) { $_=3D shift @ARGV; @@ -43,12 +43,7 @@ while (@ARGV and $ARGV[0] =3D~ m/^-/) { } elsif (m/^--rescue$/) { $xopts{RescueMode}=3D 1; } elsif (m/^--build$/) { - if ($r{arch} eq 'i386') { - $kern_arch_info =3D { - Kernel_Debian =3D> 'amd64', - Userland_setarch =3D> 'i386', - }; - } + $build =3D 1; } else { die "$_ $!"; } @@ -63,6 +58,17 @@ exit 0 if $ho->{SharedReady}; our %timeout=3D qw(ReadPreseed 350 Sshd 2400); =20 +our $kern_arch_info; + +if ($build) { + if ($r{arch} eq 'i386') { + $kern_arch_info =3D { + Kernel_Debian =3D> 'amd64', + Userland_setarch =3D> 'i386', + }; + } +} + sub install () { my ($ps_url,$ps_file)=3D preseed_create ($ho, '', --=20 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel