Bug 666880

Summary: febootstrap-supermin-helper should set +x flag on insmod
Product: [Fedora] Fedora Reporter: Richard W.M. Jones <rjones>
Component: febootstrapAssignee: Richard W.M. Jones <rjones>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: 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: 2011-05-12 15:23:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Richard W.M. Jones 2011-01-03 16:07:51 UTC
Description of problem:

When booting the libguestfs appliance, the boot fails.  Using
libguestfs-test-tool reveals many errors like this:

febootstrap: insmod cdrom.ko
insmod: execl: Permission denied
insmod: wait: File exists
febootstrap: insmod crc-ccitt.ko
insmod: execl: Permission denied
insmod: wait: File exists

This is caused because /sbin/insmod.static on the host filesystem
did not have +x permissions.  febootstrap-supermin-helper should
set this flag, regardless of whether it is set or not in the host
filesystem.

This is particularly an issue for Debian users since they have to
copy insmod.static manually (eg. from a Fedora host).

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

febootstrap 3.3
libguestfs 1.8.0

Additional info:

Full libguestfs-test-tool output:
http://pastebin.com/G5MsXrqL

Reported by librarian on #libguestfs (FreeNode IRC).

Comment 1 Richard W.M. Jones 2011-01-03 16:08:56 UTC
The error seen by users is:

libguestfs: error: unexpected end of file when reading from daemon

Comment 2 Richard W.M. Jones 2011-01-03 16:12:21 UTC
Note also: If you installed /sbin/insmod.static, forgot to chmod +x,
ran libguestfs, then just doing chmod +x WILL NOT work on its own.

You also have to force libguestfs to rebuild the appliance fully:

  rm -rf /tmp/.guestfs-*