Comment 3 for bug 1615337

Revision history for this message
Richard Jones (rjones-redhat) wrote :

Reproducer for this is:

$ virt-builder fedora-24

$ rm fedora-24-copy
$ truncate -s20G fedora-24-copy
$ virt-resize fedora-24.img fedora-24-copy

$ guestfish -a fedora-24-copy -i
><fs> list-filesystems
/dev/sda1: ext4
/dev/sda2: swap
/dev/sda3: xfs
/dev/sda4: unknown
><fs> mkfs btrfs /dev/sda4
><fs> list-filesystems
/dev/sda1: ext4
/dev/sda2: swap
/dev/sda3: xfs
/dev/sda4: btrfs
><fs> emacs /etc/fstab

... Add an extra fstab entry at the end of the file:

/dev/sda4 /home btrfs rw,user 0 0

... It doesn't matter what the options field says as long as there are
at least 2 options.

><fs> exit

$ virt-inspector fedora-24-copy
libguestfs: error: aug_get: aug_get: /files/etc/fstab/4/opt: Too many matches for path expression: There are 2 nodes matching /files/etc/fstab/4/opt