From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Thu, 02 Mar 2023 11:35:02 +0100 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 1pXgH7-006TF8-PT for lore@lore.pengutronix.de; Thu, 02 Mar 2023 11:35:02 +0100 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 1pXgH7-0001zF-MA; Thu, 02 Mar 2023 11:35:01 +0100 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 1pXgH1-0001yz-3H; Thu, 02 Mar 2023 11:34:55 +0100 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1pXgH0-001J4i-FD; Thu, 02 Mar 2023 11:34:54 +0100 Received: from localhost ([127.0.0.1]) by ptz.office.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1pXgGz-001Wy1-N9; Thu, 02 Mar 2023 11:34:53 +0100 Message-ID: From: Jan =?ISO-8859-1?Q?L=FCbbe?= To: Roland Hieber Date: Thu, 02 Mar 2023 11:34:53 +0100 In-Reply-To: <20230302094152.mp3gf3g2j3v4gtrn@pengutronix.de> References: <20230212221449.1644628-1-rhi@pengutronix.de> <20230212221449.1644628-8-rhi@pengutronix.de> <506f7f01d15bfa3835e351566ba126e7f63b33ed.camel@pengutronix.de> <20230302094152.mp3gf3g2j3v4gtrn@pengutronix.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4 (by Flathub.org) MIME-Version: 1.0 Subject: Re: [DistroKit] [PATCH 7/8] rauc: add initial support 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 On Thu, 2023-03-02 at 10:41 +0100, Roland Hieber wrote: > On Mon, Feb 13, 2023 at 08:37:25AM +0100, Jan L=C3=BCbbe wrote: > > On Sun, 2023-02-12 at 23:14 +0100, Roland Hieber wrote: > > > +++ b/projectroot/etc/rauc/system.conf > > > @@ -0,0 +1,16 @@ > > > +[system] > > > +compatible=3D@RAUC_BUNDLE_COMPATIBLE@ > > > +bootloader=3Dbarebox > > > + > >=20 > > Please disable support for plain bundles. >=20 > ACK. >=20 > > Also, add a rauc data directory on the data partition so that we can us= e > > adaptive updates and keep a global slot status file. >=20 > Okay, this turned out to be a bit more involved, because although there > is a data partition, it currently not mounted, because there is no mount > unit for it and also no fstab entry, and it also there's no file system > on it because systemd-autoformat@mmcblk3.service fails to run because > mkfs cannot find the partition because after the previous steps which > resize the partition to fill the maximum space on the SD card result in > the partition table needing to be re-read by the kernel, which fails > because the rootfs from the same block device is already mounted. >=20 > And that is my current yak shaving status=E2=80=A6 I think the 'correct' = way to > do this would be using systemd-repart [1] before the rootfs is mounted > (but maybe we need an initrd for that=E2=80=A6? not sure=E2=80=A6), or si= mply use the > existing 512 MB data partition generated by genimage and let the user > resize it manually when needed. >=20 > [1]: https://www.freedesktop.org/software/systemd/man/systemd-repart.html On the LXA TAC we currently use systemd-repart for this: https://github.com/linux-automation/meta-lxatac/tree/langdale/meta-lxatac-b= sp/recipes-core/lxatac-repart We use it from the running system (not initramfs). Jan --=20 Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |