From: Matthias Fuchs <matthias.fuchs@esd.eu>
To: "linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>
Subject: Updating UBIFS rootfilesystem
Date: Wed, 08 Feb 2012 13:44:23 +0100 [thread overview]
Message-ID: <4F326E27.7020407@esd.eu> (raw)
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
next reply other threads:[~2012-02-08 12:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-08 12:44 Matthias Fuchs [this message]
2012-02-13 13:57 ` Updating UBIFS rootfilesystem Artem Bityutskiy
2012-02-24 8:14 ` Matthias Fuchs
2012-02-24 9:47 ` Ricard Wanderlof
2012-03-09 7:53 ` Artem Bityutskiy
2012-02-24 8:16 ` Matthias Fuchs
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=4F326E27.7020407@esd.eu \
--to=matthias.fuchs@esd.eu \
--cc=linux-mtd@lists.infradead.org \
/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