From: Michael Olbrich <m.olbrich@pengutronix.de>
To: "Jan Lübbe" <jlu@pengutronix.de>
Cc: distrokit@pengutronix.de, Roland Hieber <rhi@pengutronix.de>
Subject: Re: [DistroKit] [PATCH 7/8] rauc: add initial support
Date: Thu, 2 Mar 2023 17:09:21 +0100 [thread overview]
Message-ID: <20230302160921.GS11792@pengutronix.de> (raw)
In-Reply-To: <f5e872a116bd4f788cc668469b40c2b0f3a38d40.camel@pengutronix.de>
Hi,
On Thu, Mar 02, 2023 at 11:34:53AM +0100, Jan Lübbe wrote:
> On Thu, 2023-03-02 at 10:41 +0100, Roland Hieber wrote:
> > On Mon, Feb 13, 2023 at 08:37:25AM +0100, Jan Lübbe 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=@RAUC_BUNDLE_COMPATIBLE@
> > > > +bootloader=barebox
> > > > +
> > >
> > > Please disable support for plain bundles.
> >
> > ACK.
> >
> > > Also, add a rauc data directory on the data partition so that we can use
> > > adaptive updates and keep a global slot status file.
> >
> > 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.
> >
> > And that is my current yak shaving status… 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…? not sure…), or simply use the
> > existing 512 MB data partition generated by genimage and let the user
> > resize it manually when needed.
> >
> > [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-bsp/recipes-core/lxatac-repart
>
> We use it from the running system (not initramfs).
Userspace can change the partition layout manually. systemd-repart does
this internally via fdisk_reread_changes(). That in turn calls the BLKPG
ioctl. So with the right tool you can resize a partition at runtime even if
it's on the same device as the root partition.
Michael
--
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 |
next prev parent reply other threads:[~2023-03-02 16:09 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-12 22:14 [DistroKit] [PATCH 0/8] v7a: add redundant update support via RAUC Roland Hieber
2023-02-12 22:14 ` [DistroKit] [PATCH 1/8] rauc-udev: add a compatibility layer for mapping partitions Roland Hieber
2023-02-13 9:43 ` Michael Olbrich
2023-03-02 9:33 ` Roland Hieber
2023-02-12 22:14 ` [DistroKit] [PATCH 2/8] v7a: add RAUC support for qemu-vexpress Roland Hieber
2023-03-08 9:33 ` Roland Hieber
2023-02-12 22:14 ` [DistroKit] [PATCH 3/8] v7a: add RAUC support for beaglebone black Roland Hieber
2023-02-12 22:14 ` [DistroKit] [PATCH 4/8] v7a: add RAUC support for rpi3 Roland Hieber
2023-02-12 22:14 ` [DistroKit] [PATCH 5/8] v7a: add RAUC support for riotboard Roland Hieber
2023-02-12 22:14 ` [DistroKit] [PATCH 6/8] v7a: kernel: enable features necessary for RAUC Roland Hieber
2023-02-13 7:33 ` Jan Lübbe
2023-02-12 22:14 ` [DistroKit] [PATCH 7/8] rauc: add initial support Roland Hieber
2023-02-13 7:37 ` Jan Lübbe
2023-03-02 9:41 ` Roland Hieber
2023-03-02 10:34 ` Jan Lübbe
2023-03-02 16:09 ` Michael Olbrich [this message]
2023-03-08 9:45 ` Roland Hieber
2023-02-12 22:14 ` [DistroKit] [PATCH 8/8] v7a: enable RAUC bundle creation Roland Hieber
2023-02-13 7:42 ` Jan Lübbe
2023-04-25 18:38 ` Roland Hieber
2023-02-13 7:48 ` [DistroKit] [PATCH 0/8] v7a: add redundant update support via RAUC Marco Felsch
2023-02-13 9:35 ` Roland Hieber
2023-03-07 12:04 ` Ahmad Fatoum
2023-03-08 10:11 ` Roland Hieber
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230302160921.GS11792@pengutronix.de \
--to=m.olbrich@pengutronix.de \
--cc=distrokit@pengutronix.de \
--cc=jlu@pengutronix.de \
--cc=rhi@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox