On Mon, May 13, 2013 at 12:51 PM, Bill Richardson <
wfri...@chromium.org> wrote:
> On Mon, May 13, 2013 at 9:34 AM, Mike Frysinger <
vap...@chromium.org> wrote:
>> you'd have to first plug the device into a
>> different computer (probably a Linux machine) where you could
>> reprogram the partition table to select a different active recovery
>> kernel
>
> No, that's not true. We've built multi-platform recovery and factory keys
> before - just dd the kernels and rootfs partitions from each image you want
> onto a USB stick and mark all the kernels as valid (P=1, S=1). The firmware
> only tries the ones with the keys that match the BIOS. It won't reset
> kernels any that have the successful bit set. But for N machines, you need N
> kernels and N root partitions. The actual differences may be very minor
> (/etc/lsb-release, etc.), but our current signing mechanism doesn't let us
> sign one kernel or rootfs with multiple keys. You can boot a single rootfs
> from multiple kernels by changing the kernel commandline (identify it by the
> rootfs' uuid instead of the kernel's uuid + 1 partition), but that requires
> resigning the kernel, which means using dev-keys, so it won't work for
> recovery.
interesting, that solves the booting issue. but doesn't the recovery