Bug#523711: update-initramfs doesn't pass version to flash-kernel
On Sat, 11 Apr 2009, Martin Michlmayr wrote:
> Package: initramfs-tools
>
> I use one hard drive on several different ARM machines for tests from
> time to time, so I have kernels for different subarches installed.
> /boot/vmlinux may point to a kernel that is not the current subarch.
> When I ran update-initramfs with a specific kernel, I get the
> following:
>
> | foobar:/etc/initramfs-tools# update-initramfs -u -k 2.6.28-1-ixp4xx
> | update-initramfs: Generating /boot/initrd.img-2.6.28-1-ixp4xx
> | Kernel /boot/vmlinuz-2.6.29-rc8-kirkwood does not match your subarchitecture
> | ixp4xx, therefore not writing it to flash.
>
> Now this situation is not common, but it shows a more general problem:
> when /boot/vmlinux points to version 1 but you run update-initramfs on
> version 2 it will still write version 1 to flash. I think it should
> either write version 2 to flash or not write anything to flash (and
> only update the ramdisk on disk).
>
> The easiest solution is probably to pass a specific version to
> flash-kernel.
sure update-initramfs can pass the ${version} to flash kernel.
how does flash-kernel react with the extra arg,
just tell me how you want it to be passed and it will get added for 0.93.3
Reply to: