From nobody Sat Dec 13 07:25:02 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=none dis=none) header.from=invisiblethingslab.com ARC-Seal: i=1; a=rsa-sha256; t=1764866801; cv=none; d=zohomail.com; s=zohoarc; b=STLG9eEEIBVwGpuAzif5JEZi+ppKc7E7j5HZd4+ag7EsBF31yt1nPF3Qf64XSRd7yLzoTvbe+FH1WW3nDKAenB6lcO5O7VH9Nnm6qOTb4FhFnJMEBIyGUKZ1N9bs8FfpKMT6/0K6xm5PV2SHlHLawy87pDIKxpg6GgHLFpXZpL4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1764866801; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=dT2lw6HtLtQeJ5MhpVe/EmYio6/lL6n79y37dwNMdvs=; b=m+kWNmYkbMolbHWUhOx+o6aPuiE4HMuTt37AjxITCjGNwWSUXgoNR1R3ILDbHscqpQxgtwVuU9KU7rwtb6+QAovhjx9ALWlLs8gvXOVED4H1gOiSQLFQqOBkV9pnz9IZCZLChvjSPVJ5dMR41am1AjBbW1rOi48LvHPPzuvUVR0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1764866801188201.30711277493037; Thu, 4 Dec 2025 08:46:41 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.1178108.1502068 (Exim 4.92) (envelope-from ) id 1vRCTH-0006b0-3w; Thu, 04 Dec 2025 16:46:23 +0000 Received: by outflank-mailman (output) from mailman id 1178108.1502068; Thu, 04 Dec 2025 16:46:23 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1vRCTH-0006at-0s; Thu, 04 Dec 2025 16:46:23 +0000 Received: by outflank-mailman (input) for mailman id 1178108; Thu, 04 Dec 2025 16:46:22 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1vRCMB-0008JN-PU for xen-devel@lists.xenproject.org; Thu, 04 Dec 2025 16:39:03 +0000 Received: from fout-a7-smtp.messagingengine.com (fout-a7-smtp.messagingengine.com [103.168.172.150]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id bdc8de33-d12f-11f0-9d1a-b5c5bf9af7f9; Thu, 04 Dec 2025 17:39:03 +0100 (CET) Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailfout.phl.internal (Postfix) with ESMTP id 6AA8FEC05A6; Thu, 4 Dec 2025 11:39:02 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-05.internal (MEProxy); Thu, 04 Dec 2025 11:39:02 -0500 Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 4 Dec 2025 11:39:01 -0500 (EST) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: bdc8de33-d12f-11f0-9d1a-b5c5bf9af7f9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= invisiblethingslab.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1764866342; x=1764952742; bh=dT2lw6HtLt QeJ5MhpVe/EmYio6/lL6n79y37dwNMdvs=; b=KfcvIhV6mZhCaPu2rkjY/rtaTd suRWdYlw970D8DTz7LH+3j+WrLZCEXehNg+h5Q2XV3pfmyskZF0CLoZAcZ7rThxi IARYKCaxi6AZhYyKTDUdCs3tmDri1OwfBEAUzmzKghAlWDHc/XaTCLQ6Ur6W8DPG TYSNut4xVJRkyCLiQfSC0u9YLQRF4KbZ6obyMv4584+FxTLZwqxgV4gsEpAd3m8s QOMiof2/y9Svj1WeDmofr+i4tFhNqWOLrL2adKqCtKUAIXtxYdUuV9r5dzthvsj4 aoe8BwpNR3WV+2X19IAlQGEpAOmlYSlSMh3VACQxWr5Z02gWYAcw6418Mf+g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1764866342; x= 1764952742; bh=dT2lw6HtLtQeJ5MhpVe/EmYio6/lL6n79y37dwNMdvs=; b=Q BKX6UUJ0fqLEg6GvbrAAHIiQgylJf2sqYyddmaw49hMU49HoRx9HiOGIeTvsLhnU 710FWJjwarUjRGAPkznaoe/m0WgN0LufAmJYmtfIdpgTN4l7Uff8QHno1WwwUzkg M67WIw/UIjJJxuaTdFDM7wZyObtQED4trH7iRvtSnq+A7PwkTzDntSw60peY6Hsw jv3NFBRaI0Ms5NelTwW233QPY3HssicmnFGQufjrNFZhRWRGjL1V3RVVuTShJi7y vbDTkRQphNRtufbe41radWPS8zDnW65m9zuF64u56wrCCXZrRMCeXv5Zlyp2cD9I 1dTtGilKN/Ouj1mpsYzHA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdeitdekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceurghi lhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurh ephffvvefufffkofgjfhggtgfgsehtkeertdertdejnecuhfhrohhmpeforghrvghkucfo rghrtgiihihkohifshhkihdqifpkrhgvtghkihcuoehmrghrmhgrrhgvkhesihhnvhhish hisghlvghthhhinhhgshhlrggsrdgtohhmqeenucggtffrrghtthgvrhhnpefgueduhefg vdefheehudejheefudevueeghfekhfehleegveduteeuiedugffgffenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmrghrmhgrrhgvkhesihhn vhhishhisghlvghthhhinhhgshhlrggsrdgtohhmpdhnsggprhgtphhtthhopeehpdhmoh guvgepshhmthhpohhuthdprhgtphhtthhopeigvghnqdguvghvvghlsehlihhsthhsrdig vghnphhrohhjvggtthdrohhrghdprhgtphhtthhopegrnhgurhgvfidrtghoohhpvghrfe estghithhrihigrdgtohhmpdhrtghpthhtohepshhsthgrsggvlhhlihhniheskhgvrhhn vghlrdhorhhgpdhrtghpthhtoheprhhoghgvrhdrphgruhestghithhrihigrdgtohhmpd hrtghpthhtohepmhgrrhhmrghrvghksehinhhvihhsihgslhgvthhhihhnghhslhgrsgdr tghomh X-ME-Proxy: Feedback-ID: i1568416f:Fastmail From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= To: xen-devel@lists.xenproject.org Cc: Andrew Cooper , Stefano Stabellini , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= , =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Subject: [PATCH v2 10/12] Prepare grub for booting x86_64 HVM domU from a disk Date: Thu, 4 Dec 2025 17:38:47 +0100 Message-ID: <18bbbbcc6cc0642c02b90a43d8a318a6f6193079.1764866136.git-series.marmarek@invisiblethingslab.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @invisiblethingslab.com) X-ZM-MESSAGEID: 1764866801845019200 The stubdomain test will use it Signed-off-by: Marek Marczykowski-G=C3=B3recki --- scripts/alpine-rootfs.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/alpine-rootfs.sh b/scripts/alpine-rootfs.sh index e06e72b..7d0e70d 100755 --- a/scripts/alpine-rootfs.sh +++ b/scripts/alpine-rootfs.sh @@ -94,5 +94,12 @@ cd / echo -ne "dev\0proc\0run\0sys\0" } | cpio -0 -R 0:0 -H newc -o | gzip > "${COPYDIR}/rootfs.cpio.gz" =20 +if [ "$UNAME" =3D "x86_64" ]; then + # Prepare boot sector for HVM disk + grub-mkimage -o ${COPYDIR}/grub-core.img \ + -O i386-pc -p '(hd0,msdos1)/boot/grub2' \ + boot part_msdos ext2 linux biosdisk configfile normal +fi + # Print the contents for the build log zcat "${COPYDIR}/rootfs.cpio.gz" | cpio -tv --=20 git-series 0.9.1