Bug 1275806 - virt-builder: error: [file] is not a regular file in the guest
virt-builder: error: [file] is not a regular file in the guest
Product: Virtualization Tools
Classification: Community
Component: libguestfs (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Pino Toscano
Depends On:
  Show dependency treegraph
Reported: 2015-10-27 15:34 EDT by Richard W.M. Jones
Modified: 2015-11-10 04:29 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2015-11-10 04:29:06 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Richard W.M. Jones 2015-10-27 15:34:35 EDT
Description of problem:

If you try to virt-builder --edit some file that does not exist,
you get a non-intuitive error:

$ virt-builder fedora-22 --edit '/etc/foobar: s/1/2/'
[   1.5] Downloading: http://libguestfs.org/download/builder/fedora-22.xz
[   3.8] Planning how to build this image
[   3.8] Uncompressing
[  14.7] Opening the new disk
[  28.8] Setting a random seed
[  28.8] Editing: /etc/foobar
virt-builder: error: /etc/foobar is not a regular file in the guest

It should probably say something like '/etc/foobar' file does
not exist.

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

Comment 1 Pino Toscano 2015-11-10 04:29:06 EST
Fixed with commit
which is in libguestfs >= 1.31.26.

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