Re-Exec init after pivot_root
Zoban Gubich
zobangub at gmail.com
Wed Mar 21 16:01:01 UTC 2007
Dennis,
Alberto,
Thank you. You've answered my question. I have a fairly ancient version of
inittab
I've been using even though I'm using the latest busybox-1.4.2. Looking at
the
example inittab in the latest sources I find that there are many more
actions
(including RESTART) then in my old rusty one. Sorry I didn't figure this out
on
my own.
Thanks for taking the time to educate me, its most appreciated!
Mark
I agree with Denis. I'm using the same process to update a system
> partition on an embedded system using another one as update system.
> Basically these are the steps:
>
> mount $UPDATE_PARTITION $UPDATE_DIR
> cd $UPDATE_DIR
> pivot_root . old_root
> chroot . /bin/kill -QUIT 1 &
>
> the /etc/fstab file contains the restart action as suggested by Denis,
> so init is re-executed after killing all other processes.
> The /etc/rc script of the new root filesystem is free to umount
> /old_root and overwrite the old root filesystem.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/busybox/attachments/20070321/2418d754/attachment-0001.htm
More information about the busybox
mailing list