Bug 928673

Summary: mkinitrd doesn't find kernel
Product: [openSUSE] openSUSE Tumbleweed Reporter: Volker Kuhlmann <bugz57>
Component: BasesystemAssignee: Ludwig Nussel <lnussel>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: bugz57, chcao
Version: 201503*   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Volker Kuhlmann 2015-04-27 06:00:38 UTC
# mkinitrd 
No kernel found in /boot or bad modules dir in /lib/modules

Looking at the script it's probably because

/usr/bin/get_kernel_version /boot/zImage-3.16.7-11-default
/usr/bin/get_kernel_version /boot/zImage-3.19.3-1-default

etc. produce no output.

# rpm -qf /usr/bin/get_kernel_version
aaa_base-13.2+git20150309.be5760c-1.1.armv7hl
# uname -a
Linux linux 3.19.3-1-default #1 SMP Thu Mar 26 17:34:34 UTC 2015 (f10e7fc) armv7l armv7l armv7l GNU/Linux

Problem occurs on all of these systems:
openSUSE-13.2-ARM-JeOS-cubieboard.armv7l-1.12.1-Build33.6.raw.xz
openSUSE-Factory-ARM-JeOS-cubieboard.armv7l-1.12.1-Build269.1.raw.xz
openSUSE-Factory-ARM-JeOS-cubieboard.armv7l-1.12.1-Build293.8.raw.xz
Comment 1 Chenzi Cao 2015-04-28 10:11:37 UTC
Hi Ludwig, I'm not sure whether it is right to assign it to you, please feel free to reassign whenever necessary, thank you!
Comment 2 Ludwig Nussel 2015-04-28 12:14:02 UTC
dup of 908454

*** This bug has been marked as a duplicate of bug 908454 ***
Comment 3 Volker Kuhlmann 2015-05-09 21:48:27 UTC
Using file may not be so simple:

# file /boot/zImage-3.19.3-1-default
/boot/zImage-3.19.3-1-default: Linux kernel ARM boot executable zImage (little-endian)
# file -v
file-5.19

Any reason not to use just the file name (or link name, don't de-reference)?