libguestfs uses aug_get to get /files/etc/fstab/X/opt instead /files/etc/fstab/X/opt[Y]
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libguestfs (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
When running virt-sysprep on a VM file containing an fstab, with entries with multiple options, it will fail with "guestfsd: error: aug_get: /files/
Augeas' aug_get only returns the value for a single node, and will fail with an error if there are multiple matches for the string. In this case, the nodes "/files/
It appears that libguestfs does "aug_match /files/
Ubuntu version: Ubuntu 16.04 LTS
libguestfs0 version: 1:1.32.2-4ubuntu2
libguestfs-tools version: 1:1.32.2-4ubuntu2
Additional information:
The image file in question is a qcow2 image file, with Ubuntu 16.04 "xenial" installed.
The partitions present on the qcow2 image are a FAT32 EFI System Partition, and a btrfs root filesystem with two subvolumes: @ (for /), and @home (for /home).
The fstab present on the installation of Ubuntu contains multiple fstab entries with multiple options, e.g. "relatime,subvol=@" for /
Changed in libguestfs (Ubuntu): | |
importance: | Undecided → Medium |
Bug still exists as of commit c711b517094375d 4c321af4800e747 b955643133 (https:/ /github. com/libguestfs/ libguestfs/ commit/ c711b517094375d 4c321af4800e747 b955643133)