From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 60468C369A2 for ; Mon, 14 Apr 2025 14:22:34 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.950473.1346776 (Exim 4.92) (envelope-from ) id 1u4Khd-0007bC-0G; Mon, 14 Apr 2025 14:22:25 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 950473.1346776; Mon, 14 Apr 2025 14:22:24 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1u4Khc-0007b5-Tw; Mon, 14 Apr 2025 14:22:24 +0000 Received: by outflank-mailman (input) for mailman id 950473; Mon, 14 Apr 2025 14:22:23 +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 1u4Khb-0007Yi-4g for xen-devel@lists.xenproject.org; Mon, 14 Apr 2025 14:22:23 +0000 Received: from fout-b7-smtp.messagingengine.com (fout-b7-smtp.messagingengine.com [202.12.124.150]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id e0a867e3-193b-11f0-9eae-5ba50f476ded; Mon, 14 Apr 2025 16:22:22 +0200 (CEST) Received: from phl-compute-04.internal (phl-compute-04.phl.internal [10.202.2.44]) by mailfout.stl.internal (Postfix) with ESMTP id BBD7911400B4; Mon, 14 Apr 2025 10:22:20 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-04.internal (MEProxy); Mon, 14 Apr 2025 10:22:20 -0400 Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 14 Apr 2025 10:22:19 -0400 (EDT) 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: e0a867e3-193b-11f0-9eae-5ba50f476ded DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= invisiblethingslab.com; h=cc:cc: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=fm2; t=1744640540; x=1744726940; bh=7HskunbLaLDVeUAl7RZ/zpIES69yBWZlfA2EVwQb9TE=; b= N4mRN1OPPFUi2A/JP4fHS2YA6ko1fuUTG2/Av6ouIloUSdStm8CVig8TCMbTvvzZ amN1YvT6g9wXZqCcL1dOlwOYIhSefhymgeSCZs/DJZHUcQOenFm55tUNF8NRcSlk FMsUCnnQqgX6tvEQRwB9rFJeSyxKX9e+go5bydLZ+bVm6aVv6mA0aLUIrMak3X1t vksDEPvmLwEdaHvuCqP7xwpqczNaTw+YQLiaz4tgtWPlx551eHKlLlzu0K6jYRq3 8iiRDWXBCgqZ8LIWhL1l+cscNlJRUP9UAdhcQVmoBOL6Uq1pP9jZxr9Yz7ariz+a 4gjtQuMThaGr/cQBYalAcg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc: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=fm2; t= 1744640540; x=1744726940; bh=7HskunbLaLDVeUAl7RZ/zpIES69yBWZlfA2 EVwQb9TE=; b=gHAo+kxOgoFgWnTB4BGbYNL7vJcJ9jMUkDaDWHoVZLdtGWQ/waU rBgXSXTCRAq33TKhd6bOtr0NF6nEqXQHKbau+lJwFeznvUPHphv78ugkVs4+URks 6Fa4+Pd4kvWv9nrGW797R7FBKQiVqfrB3j2nalG1IrDJO+FZ0u1c6b8BheSe7Icb V3oQgkG/qS9gfHQcePlTPWNckCnlf9V+k+YBBAaUAANI/mc3IKuQYngnXBcUG/hu zRmCu0GG1LwS7JE95MkgsRsqBCFRVZLEkAcvBOFezU2Tnfd20Wp1uwn3hfF9NvCR 9bBQnaCTnvy2ecC25Eud1uLkxmMPbXCoxXw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvvddtjeejucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhepfffhvfevuffkfhggtggujgesghdtreertddt jeenucfhrhhomhepofgrrhgvkhcuofgrrhgtiiihkhhofihskhhiqdfikphrvggtkhhiuc eomhgrrhhmrghrvghksehinhhvihhsihgslhgvthhhihhnghhslhgrsgdrtghomheqnecu ggftrfgrthhtvghrnhepgfduleetfeevhfefheeiteeliefhjefhleduveetteekveettd dvgeeuteefjedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhf rhhomhepmhgrrhhmrghrvghksehinhhvihhsihgslhgvthhhihhnghhslhgrsgdrtghomh dpnhgspghrtghpthhtohepiedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoheprghn ughrvgifrdgtohhophgvrhefsegtihhtrhhigidrtghomhdprhgtphhtthhopeigvghnqd guvghvvghlsehlihhsthhsrdigvghnphhrohhjvggtthdrohhrghdprhgtphhtthhopegr nhhthhhonhihrdhpvghrrghrugesvhgrthgvshdrthgvtghhpdhrtghpthhtohepshhsth grsggvlhhlihhniheskhgvrhhnvghlrdhorhhgpdhrtghpthhtohepmhhitghhrghlrdho rhiivghlsegrmhgurdgtohhmpdhrtghpthhtoheptggrrhguohgvsegtrghrughovgdrtg homh X-ME-Proxy: Feedback-ID: i1568416f:Fastmail Date: Mon, 14 Apr 2025 16:22:17 +0200 From: Marek =?utf-8?Q?Marczykowski-G=C3=B3recki?= To: Andrew Cooper Cc: Xen-devel , Anthony PERARD , Stefano Stabellini , Michal Orzel , Doug Goldstein Subject: Re: [PATCH v2.1 4/7] Shrink the rootfs substantially Message-ID: References: <20250414101843.2348330-5-andrew.cooper3@citrix.com> <20250414115226.2357714-1-andrew.cooper3@citrix.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="FvLreH1ddAa5vxOm" Content-Disposition: inline In-Reply-To: <20250414115226.2357714-1-andrew.cooper3@citrix.com> --FvLreH1ddAa5vxOm Content-Type: text/plain; protected-headers=v1; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Date: Mon, 14 Apr 2025 16:22:17 +0200 From: Marek =?utf-8?Q?Marczykowski-G=C3=B3recki?= To: Andrew Cooper Cc: Xen-devel , Anthony PERARD , Stefano Stabellini , Michal Orzel , Doug Goldstein Subject: Re: [PATCH v2.1 4/7] Shrink the rootfs substantially On Mon, Apr 14, 2025 at 12:52:26PM +0100, Andrew Cooper wrote: > bash, busybox, musl and zlib are all in the base container. >=20 > python3 and ncurses are in principle used by bits of Xen, but not in anyt= hing > we test in CI. argp-standlone, curl, dbus, libfdt, libgcc and sudo aren't > used at all (for x86 at least). >=20 > libbz2 and libuuid were pulled in transitively before, and need to be inc= luded > explicitly now. >=20 > Use apk --no-cache to avoid keeping a ~2M package index on disk. Use apk > upgrade in case there are changes to the base container. >=20 > Remove the modules scan on boot. We don't have or build any (except argo= , and > that's handled specially). This removes a chunk of warnings on boot. >=20 > This shrinks the rootfs from ~30M down to ~8M. >=20 > Factor out some x86-isms in preparation for ARM64 support. >=20 > No practical change. >=20 > Signed-off-by: Andrew Cooper Reviewed-by: Marek Marczykowski-G=C3=B3recki --=20 Best Regards, Marek Marczykowski-G=C3=B3recki Invisible Things Lab --FvLreH1ddAa5vxOm Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEhrpukzGPukRmQqkK24/THMrX1ywFAmf9GhkACgkQ24/THMrX 1yxtpQf/a1SO2RhBh9N6yMD9jJNJqIZjD7OrjtmxqQH4sN+e5K3z7xLANuqKo6eI VWd8+mAmMRGubq/KrNl4RgkBIaSyhjpyUtIJJjmxqc8PQTX+hP+WAaTIDCBM5uKz 88WR0VPc6t/9F48zOTCrdHdxb69HBZh4KnwBwXaTAWBdDZpJ9DicyumLH0vhAbzN pl7h5v+M7BR+r1l/rny2+9v67EoEV1jpDXSTtRzpze/8x6jI7EGzOekkW97yYqeu va8e9xAb6kf8URJvlusXL/lGVVBUXnPO0RmPD5YitAkmxCmurlh1XT1D80HbxsWH orEh5fwwHZEuwwObOUHN28O0iSyaDg== =TR81 -----END PGP SIGNATURE----- --FvLreH1ddAa5vxOm--