Commit 808a0457 authored by Ian Campbell's avatar Ian Campbell
Browse files

Log some debug if either the kernel or the initrd is missing.

parent 3375f8eb
...@@ -8,6 +8,8 @@ flash-kernel (3.37) UNRELEASED; urgency=medium ...@@ -8,6 +8,8 @@ flash-kernel (3.37) UNRELEASED; urgency=medium
* Handle Boot-Kernel-Image even if none of Dtb-Append, Machine-Id or * Handle Boot-Kernel-Image even if none of Dtb-Append, Machine-Id or
U-Boot-Kernel-Address are specified. Patch from David Lechner. U-Boot-Kernel-Address are specified. Patch from David Lechner.
(Closes: #783278) (Closes: #783278)
* Log some debug if either the kernel or the initrd is missing. Intended to
help debug one aspect of #781742.
-- Ian Campbell <ijc@debian.org> Sun, 03 May 2015 09:09:10 +0100 -- Ian Campbell <ijc@debian.org> Sun, 03 May 2015 09:09:10 +0100
......
...@@ -569,7 +569,18 @@ desc="kernel $kvers" ...@@ -569,7 +569,18 @@ desc="kernel $kvers"
idesc="ramdisk $kvers" idesc="ramdisk $kvers"
if [ ! -e $kfile ] || [ ! -e $ifile ]; then if [ ! -e $kfile ] || [ ! -e $ifile ]; then
error "Can't find $kfile or $ifile" # 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)"
fi fi
kfilesize=$(stat -c '%s' "$kfile") kfilesize=$(stat -c '%s' "$kfile")
ifilesize=$(stat -c '%s' "$ifile") ifilesize=$(stat -c '%s' "$ifile")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment