From: ganesh subramonian <gun_raj@yahoo.com>
To: linuxppc-embedded@ozlabs.org
Subject: upgrade cramfs rootfs while running
Date: Mon, 11 Sep 2006 02:39:39 -0700 (PDT) [thread overview]
Message-ID: <20060911093940.3052.qmail@web52414.mail.yahoo.com> (raw)
i have a cramfs image, which is my rootfs(/ partition)
on flash. in an earlier thread i found some replies
saying that upgrading it while mounted was prone to
errors. however if i am doing the upgrade only in my
shutdown scripts (so that most applications are killed
by this time) like this:
mount -o loop -t cramfs rootfs.img /tmp/somedir
eraseall /dev/mtd2
cp rootfs.img /dev/mtd2
export PATH=/tmp/somedir/bin:/tmp/somedir/sbin...
export LD_LIBRARY_PATH=/tmp/somedir/lib
reboot
is there anything that could go wrong? All further
programs(with their libs) should be executed from the
loop mounted rootfs.
or else can i do something like
mount -o loop ...
cd /tmp/somedir
pivot_root . tmp
eraseall, copy
reboot
Since i am upgrading just before reboot only these
scripts would be running. Is there a risk in
either/both of these methods.
Thanks
Ganesh
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
reply other threads:[~2006-09-11 9:46 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20060911093940.3052.qmail@web52414.mail.yahoo.com \
--to=gun_raj@yahoo.com \
--cc=linuxppc-embedded@ozlabs.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