Bug 666880 - febootstrap-supermin-helper should set +x flag on insmod
Summary: febootstrap-supermin-helper should set +x flag on insmod
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: febootstrap
Version: rawhide
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-03 16:07 UTC by Richard W.M. Jones
Modified: 2011-05-12 15:23 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-05-12 15:23:51 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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-*


Note You need to log in before you can comment on or make changes to this bug.