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

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1615337

Title:
  libguestfs uses aug_get to get /files/etc/fstab/X/opt instead
  /files/etc/fstab/X/opt[Y]

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libguestfs/+bug/1615337/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to