Re-Exec init after pivot_root
Ian Oliver
lists at foxhill.co.uk
Thu May 3 08:16:01 PDT 2007
In article
<9709bd390703210227id6b0cc5i65f135632201bfc3 at mail.gmail.com>, Alberto
Donato wrote:
> 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 &
[reply to rather old email!]
Wow, thanks, that's exactly what we needed to reflash our
cramfs/squashfs based embedded system. This will save us a lot of
messing around with initrd phases etc.
We'll just copy what we need for the reflash phase to a ramfs, perform
the steps above, and away we should go.
Regards
Ian
More information about the busybox
mailing list