Bug 1113156 - Empty fstab breaks libguestfs inspection
Summary: Empty fstab breaks libguestfs inspection
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:
TreeView+ depends on / blocked
 
Reported: 2014-06-25 14:09 UTC by Richard W.M. Jones
Modified: 2014-07-07 12:00 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-07-07 12:00:48 UTC
Embargoed:


Attachments (Terms of Use)

Description Richard W.M. Jones 2014-06-25 14:09:54 UTC
Description of problem:

Systemd allows an empty /etc/fstab, if every mountpoint uses a
systemd unit (see bug 1113153).  I believe (though I haven't tested
it) that if there is only a root filesystem, then /etc/fstab can
also be empty and at least systemd won't mind, although I imagine
lots of other software wouldn't be too happy.

If /etc/fstab exists but is empty then you get:

libguestfs: could not parse /etc/fstab or empty file

We should not fail in this case.

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

libguestfs 1.27.19

Additional info:

https://bugzilla.redhat.com/show_bug.cgi?id=1113153
https://bugs.launchpad.net/nova/+bug/1221985

Comment 1 Pino Toscano 2014-07-07 12:00:48 UTC
Fixed with
https://github.com/libguestfs/libguestfs/commit/3fc6983b1666a32ea6c1b44d88f140e3c84e7201
which is libguestfs >= 1.27.21.


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