From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 28 Aug 2023 10:58:17 +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 1qaY4g-00Bq2n-JF for lore@lore.pengutronix.de; Mon, 28 Aug 2023 10:58:17 +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 1qaY4d-0000qs-5M; Mon, 28 Aug 2023 10:58:15 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qaY4X-0000hd-Lk; Mon, 28 Aug 2023 10:58:09 +0200 Received: from [2a0a:edc0:0:1101:1d::ac] (helo=dude04.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1qaY4X-002AiX-1T; Mon, 28 Aug 2023 10:58:09 +0200 Received: from rhi by dude04.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1qaY4V-001ERQ-0T; Mon, 28 Aug 2023 10:58:07 +0200 From: Roland Hieber To: distrokit@pengutronix.de Date: Mon, 28 Aug 2023 10:58:03 +0200 Message-Id: <20230828085804.293762-7-rhi@pengutronix.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230828085804.293762-1-rhi@pengutronix.de> References: <20230828085804.293762-1-rhi@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [DistroKit] [PATCH 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: Roland Hieber 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 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