On 06/04/2012 10:06 AM, Laurent Bercot wrote:
>> Is that correct. In my system i can update the kernel boot args. But i
>> believe that if the mounting of the root partition fails then the
>> kernel will panic.
>  You can do some basic tests before rebooting, including whether the
> mounting works (mount /dev/something /mnt/test) and whether the new
> firmware looks like something you actually made
> (chroot /mnt/test /bin/true && /bin/verify /mnt/test/somepublickey)
>
>  If all else fails, you should have a hardware watchdog that reboots
> the device when the kernel's gone fishing, and your bootloader will
> then fall back on the old rootfs.
>
I would think you'd want to use kexec to test the new image, then if it
panics, the nvram is unchanged and it will reboot into the regular
partition.  If the kexec'd system boots up, and knows that it is testing
an update, then it can be the one to write the changes to the nvram so
that it is used from now on.

-Mike
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to