Updating UBIFS rootfilesystem

Matthias Fuchs matthias.fuchs at esd.eu
Wed Feb 8 07:44:23 EST 2012


Hi,

is there an elegant way to update an UBIFS rootfilesystem?

Let's say I have enough flash space for my actual rootfilesystem
(rootfs1) and a new version (rootfs2). So while running from rootfs1
I updated rootfs2 volume with a new rootfilesystem.

Now my idea was to use ubirename to exchange the volume names so that
after next reboot rootfs1 'points' to the new filesystem and rootfs2
contains the old one (ready for deletion or further updates).

As expected ubirename reports "Device or resource busy" probably because
it cannot rename mounted volumes. Of course I could tell my bootloader
to mount rootfs2 after a reboot. But isn't there a more elegant way?
ubirename really looks like the right way ....

Any ideas?

Matthias



More information about the linux-mtd mailing list