Bug 1033632

Summary: supermin-helper cannot guess module path from SUPERMIN_KERNEL=vmlinuz alone
Product: [Community] Virtualization Tools Reporter: Richard W.M. Jones <rjones>
Component: superminAssignee: Richard W.M. Jones <rjones>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: ptoscano, rjones
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 910269, 1033508    

Description Richard W.M. Jones 2013-11-22 14:24:50 UTC
Description of problem:

For x86 (doesn't work on ARM) it should be possible to guess the
module path from just a "naked" vmlinuz file.  This is because
the vmlinuz file contains its own version number.

supermin-helper already contains code to look for this version
number, but it doesn't work if you set only SUPERMIN_KERNEL
environment variable:

  select kernel /dev/.initramfs/live/vmlinuz0
  supermin-helper: cannot guess module path.

There is a possibly superfluous test in helper/kernel.c:
create_kernel_from_env which stops this from working.  It
should be possible to fix this fairly easily.

Version-Release number of selected component (if applicable):

febootstrap in RHEL 6.4
also likely affects supermin upstream

Additional information:
https://github.com/libguestfs/supermin/blob/master/helper/kernel.c

Comment 1 Jaroslav Reznik 2015-03-03 15:13:28 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle.
Changing version to '22'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22