Bug 1165785 - mount-loop command fails: mount failed: Unknown error -1
Summary: mount-loop command fails: mount failed: Unknown error -1
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libguestfs
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 1242853
TreeView+ depends on / blocked
 
Reported: 2014-11-19 17:09 UTC by Richard W.M. Jones
Modified: 2015-10-19 13:22 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-11-20 14:14:47 UTC
Embargoed:


Attachments (Terms of Use)

Description Richard W.M. Jones 2014-11-19 17:09:49 UTC
Description of problem:

The mount-loop command fails in guestfish.

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

libguestfs-tools-c-1.29.8-1.fc22.x86_64
(On Fedora 21)

How reproducible:

100%

Steps to Reproduce:

Download the disk image here:
http://oirase.annexia.org/virt-p2v/livecd-p2v-201411180515.iso

guestfish -a livecd-p2v-201411180515.iso
><fs> run
><fs> mkmountpoint /1
><fs> mount /dev/sda /1
><fs> mkmountpoint /2
><fs> mount-loop /1/LiveOS/squashfs.img /2

Actual results:

mount-loop command fails with an error like:

libguestfs: error: mount_loop: /1/LiveOS/squashfs.img on /2: mount: /sysroot/2: mount failed: Unknown error -1

Note that I can download the squashfs and then open
it with guestfish, so it doesn't seem to be a problem
with the file.

Comment 1 Richard W.M. Jones 2014-11-19 17:22:48 UTC
Seems to be a variation of bug 1159430.

Comment 2 Richard W.M. Jones 2014-11-20 13:10:14 UTC
We needed to pass the --boot parameter.  Patch posted:

https://www.redhat.com/archives/libguestfs/2014-November/msg00136.html

Comment 3 Richard W.M. Jones 2014-11-20 14:14:47 UTC
I have pushed this patch.

Comment 4 Pino Toscano 2015-10-19 12:37:13 UTC
The two patches in the series have been committed as
https://github.com/libguestfs/libguestfs/commit/8e78a830671897376c3d7585f23ce3fba684f7f1
https://github.com/libguestfs/libguestfs/commit/3dabc7a7bae709e884b56e297e7ece222e653d0c
which are both in libguestfs >= 1.29.9 (and libguestfs >= 1.28.4).


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