Bug#780994: flash-kernel: Missing dependency on u-boot-tools fails initramfs-tools to fail
On Thu, Jan 01, 1970 at 12:49:11AM +0000, Martin Stigge wrote:
> Package: flash-kernel
> Version: 3.33
> Severity: normal
>
> Hi,
>
> I just installed flash-kernel but didn't have u-boot-tools installed. I
> believe it's the initramfs trigger that failed with the following:
>
> Generating boot script u-boot image... /usr/sbin/flash-kernel: 348: /usr/sbin/flash-kernel: mkimage: not found
> run-parts: /etc/initramfs/post-update.d//flash-kernel exited with return code 127
> dpkg: error processing package initramfs-tools (--configure):
> subprocess installed post-installation script returned error exit status 1
> Errors were encountered while processing:
> initramfs-tools
> E: Sub-process /usr/bin/dpkg returned an error code (1)
>
> That's easily resolved by installing the u-boot-tools package, but I would
> have expected that do be a dependency in that case. I see that it's a
> Suggests, but looks rather essential to me.
It may or may not be, depending on your particular hardware. The proper
way to flash a kernel differs from machine to machine, and from
bootloader to bootloader. Therefore, flash-kernel has a lot of code
paths, some of which require mkimage, some of which don't.
When d-i installs flash-kernel, it will also make sure that the required
dependencies are in place, so a suggests seems correct to me.
--
It is easy to love a country that is famous for chocolate and beer
-- Barack Obama, speaking in Brussels, Belgium, 2014-03-26
Reply to: