From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 23 Jun 2023 14:48:08 +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 1qCgCv-000aP6-OZ for lore@lore.pengutronix.de; Fri, 23 Jun 2023 14:48:08 +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 1qCgCs-0006Mf-QX; Fri, 23 Jun 2023 14:48:06 +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 1qCgCl-0006Hq-Ui; Fri, 23 Jun 2023 14:47:59 +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 1qCgCl-009VUV-68; Fri, 23 Jun 2023 14:47:59 +0200 Received: from rhi by dude04.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1qCgCj-009fCA-Bl; Fri, 23 Jun 2023 14:47:57 +0200 From: Roland Hieber To: distrokit@pengutronix.de Date: Fri, 23 Jun 2023 14:47:54 +0200 Message-Id: <20230623124755.2292833-14-rhi@pengutronix.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230623124755.2292833-1-rhi@pengutronix.de> References: <20230623124755.2292833-1-rhi@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [DistroKit] [PATCH 13/14] 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..df328522a747 --- /dev/null +++ b/platforms/image-rauc.deps.in @@ -0,0 +1,6 @@ +## SECTION=image + +menuconfig IMAGE_RAUC + tristate + select IMAGE_ROOT_EXT + select IMAGE_ROOT_EXT_EXT4 -- 2.39.2