Bug#932231: flash-kernel might fail silently
Package: flash-kernel
Version: 3.37
Severity: normal
Hello,
flash-kernel 3.37 introduced the following in flash-kernel:
+ # installation-report #781742 included:
+ # Can't find /boot/vmlinuz-[...] or /boot/initrd.img-[...]
+ #
+ # It's unclear how this can have happened or what state the
+ # system was in, so log some additional information in the
+ # hopes of catching it in the act next time.
+ (
+ set -x
+ ls -l $kfile*
+ ls -l $ifile*
+ ) >> /tmp/flash-kernel-no-kernel-error.log
+ error "Can't find $kfile or $ifile (see /tmp/flash-kernel-no-kernel-error.log)"
A problem here is that if the last command in the subshell fails this
makes flash-kernel exit (as it uses "set -e") without reaching the error
message.
Best regards
Uwe
Reply to: