10 Jun
2011
10 Jun
'11
12:42 p.m.
On Fri, Jun 10, 2011 at 12:36 AM, C Anthony Risinger <anthony@xtfx.me> wrote: <snip>
what if we (optionally) stored the original images _inside_ the new one? the new/bad kernel would boot, and via some bootloader entry eg. kernel param the new initcpio script would kexec the old kernel, with another (different) kernel param ... when the old kernel booted it would load the exact same initramfs image, except it would use an alternate tree, ie. instead of /init it would chroot to /previous and run /previous/init ...
eh, for the priority of known sources of error: an UPDATE image could contain the NEW kernel in an alternate tree /new/init, because the OLD kernel is KNOWN to boot that far... Anything else would be insane.