From nobody Mon Feb 9 19:54:10 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=1556707799; cv=none; d=zoho.com; s=zohoarc; b=SGkSOeLk7lqV8BmRxhic3ascrOHbPYjQlkebekuqQ+NFnVvV8Hm5onLbtkTPuxSBTWYVZo2hq9n2oHuKxNUx9aYdysdbfdrnLMZ2W65uuF6KZ+EGimRZBfoYUs4HmNI+uFStyI+85ZlFm3vV8OSPGGLg5G4raVzs7F8p6hqQ0Yc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1556707799; 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=UUomlO173QrqdFAhCDXTVE3zWtemtiQqhqzAnAiBKbo+wIF+4gDml+xvKMSC1XYT8YM2OtErEEQ7zoumn+pLbPsyFADpPmez3+7WiaNXA8GLE4tptfR55eBgkuIUCGq3Yc/384q4G6n0LzCq9j0cVjp/UYWFYXwRzKLb2Hmh9CI= 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 1556707799382736.0141912481921; Wed, 1 May 2019 03:49:59 -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 1hLmnB-0005Ui-Vh; Wed, 01 May 2019 10:48:49 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hLmnA-0005U8-OP for xen-devel@lists.xenproject.org; Wed, 01 May 2019 10:48:48 +0000 Received: from SMTP03.CITRIX.COM (unknown [162.221.156.55]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id b1aa9400-6bfe-11e9-abce-478f4e94a758; Wed, 01 May 2019 10:48:45 +0000 (UTC) X-Inumbo-ID: b1aa9400-6bfe-11e9-abce-478f4e94a758 X-IronPort-AV: E=Sophos;i="5.60,417,1549929600"; d="scan'208";a="84837295" From: Ian Jackson To: Date: Wed, 1 May 2019 11:48:27 +0100 Message-ID: <20190501104839.21621-4-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190501104839.21621-1-ian.jackson@eu.citrix.com> References: <20190501104839.21621-1-ian.jackson@eu.citrix.com> MIME-Version: 1.0 Subject: [Xen-devel] [OSSTEST PATCH v2 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