From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 25 Aug 2023 15:09:14 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qZWYt-008U8r-6l for lore@lore.pengutronix.de; Fri, 25 Aug 2023 15:09:14 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1qZWYr-0001QY-4v; Fri, 25 Aug 2023 15:09:13 +0200 Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qZWYp-0001QJ-2K; Fri, 25 Aug 2023 15:09:11 +0200 Received: from rsc by pty.hi.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1qZWYo-00EX9u-Jw; Fri, 25 Aug 2023 15:09:10 +0200 Date: Fri, 25 Aug 2023 15:09:10 +0200 From: Robert Schwebel To: Roland Hieber Message-ID: References: <20230825110310.2948272-1-rhi@pengutronix.de> <20230825110310.2948272-7-rhi@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230825110310.2948272-7-rhi@pengutronix.de> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain Subject: Re: [DistroKit] [PATCH v5 6/7] image-rauc: use ext4 rootfs instead of tar.gz X-BeenThere: distrokit@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: DistroKit Mailinglist List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: distrokit@pengutronix.de Sender: "DistroKit" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: distrokit-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false Applied to next On Fri, Aug 25, 2023 at 01:03:09PM +0200, Roland Hieber wrote: > On one hand, the squashfs inside the RAUC bundle already uses > compression, so with a tar.gz inside a squashfs the content is > compressed twice. Also using ext4 makes it possible to use adaptive > updates in the future. > > (Yes, the image generated by the image-root-ext recipe is really called > "root.ext2", even if it's an ext4 image.) > > Link: https://rauc.readthedocs.io/en/latest/advanced.html#adaptive-updates > Signed-off-by: Roland Hieber > --- > config/images/rauc.config | 4 ++-- > platforms/image-rauc.deps.in | 6 ++++++ > 2 files changed, 8 insertions(+), 2 deletions(-) > create mode 100644 platforms/image-rauc.deps.in > > diff --git a/config/images/rauc.config b/config/images/rauc.config > index e4169cc8cd95..83e074274961 100644 > --- a/config/images/rauc.config > +++ b/config/images/rauc.config > @@ -1,6 +1,6 @@ > image @IMAGE@ { > rauc { > - file root.tar.gz { image = "root.tgz" } > + file root.ext4 { image = "root.ext2" } > manifest = " > [update] > compatible=@RAUC_BUNDLE_COMPATIBLE@ > @@ -12,7 +12,7 @@ image @IMAGE@ { > format=@RAUC_BUNDLE_FORMAT@ > > [image.rootfs] > - filename=root.tar.gz > + filename=root.ext4 > " > cert = "@RAUC_CERT@" > key = "@RAUC_KEY@" > diff --git a/platforms/image-rauc.deps.in b/platforms/image-rauc.deps.in > new file mode 100644 > index 000000000000..2b2853441a96 > --- /dev/null > +++ b/platforms/image-rauc.deps.in > @@ -0,0 +1,6 @@ > +## SECTION=image > + > +config IMAGE_RAUC > + tristate > + select IMAGE_ROOT_EXT > + select IMAGE_ROOT_EXT_EXT4 > -- > 2.39.2 > > > -- Pengutronix e.K. | Dipl.-Ing. Robert Schwebel | Steuerwalder Str. 21 | https://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 |