specify root squashfs ubiblock by volume name
Richard Weinberger
richard at nod.at
Mon Apr 15 12:06:52 PDT 2024
----- Ursprüngliche Mail -----
> I have an embedded system in which multiple rootfs are stored in an ubi device
> as squashfs ubi volumes.
> This is to be able to have fallback systems or to be able to store and run
> different versions of the software easily.
> Because the number and order of volumes in the ubi device can change (different
> configurations, optional log volume, etc),
> I have a small patch that allows me to specify the volume using “ubiblock:name”,
> which mirrors the already possible “ubi:name”,
> Instead of specifying the device name for the "root" boot argument.
>
> Is there already a way to do this that I may have overlooked?
Traditionally, I always suggest using a minimal initramfs as soon the rootfs setup
is non-trivial. But there are exceptions.
> If not, do you think this is a feature that would be accepted into mainline?
Depends on the changes.
In any case, please share your patch. It does not have to be perfect,
just mark it as RFC.
Thanks,
//richard
More information about the linux-mtd
mailing list