All of lore.kernel.org
 help / color / mirror / Atom feed
* Help for implementation system based linux update.
@ 2009-02-11  6:48 Fred Fan
  0 siblings, 0 replies; only message in thread
From: Fred Fan @ 2009-02-11  6:48 UTC (permalink / raw)
  To: linux-kernel

Hi All:
       I want to implement a function to provide a system update for
our product. I don't know what is popular approach.
The kernal Image update is easy. The problem is update about rootfs,
because our rootfs has over 100Mbytes.
And the storage is hard disk. I can not use cramfs + configuration or
application partition to implement them.
There are a lot of lib. Maybe, I can try them.
I just get two ways to implement it.
First, we can use two same partitions: active or backup. We can switch
them:we alway update the backup partion
and switch the roles of them.
The last one is the init application will be replaced in a rescue
partion or initrd. After the rootfs is update, it will
perform the tranditional init process.
      But I hope I can complete the update before system reboot.
I have follow the switchroot's work flow in nash source code to try it.
First, I kill all non-kernel processes and remove all filesystem
excepts "/" and "/dev":the trial is manual.
The "/dev" can not be umount, althought I have add force flag in command line.
Next, I mount a small partition which has basic rootfs to /mnt.
And then enter /mnt. Also I do mount with move flag to move /mnt to "/".
At last, I use chroot command to switch "/".
I expect, I can umount the original "/". But fact is it is busy. so it
is can not umount.
Could you give me some suggestion about how to implement the latest method?
Or it is totial wrong. So could you give me some suggestion to
implement system update.
Best Regards.
Fred

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-02-11  6:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-11  6:48 Help for implementation system based linux update Fred Fan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.