[Libguestfs] [PATCH 0/1] dib: handle unsetting functions in environment

John Eckersberg
2015-08-12T14:32:59Z

This fixes this error I'm hitting when trying to run virt-dib:

$ ./run virt-dib -v -x -B ~/git/diskimage-builder/lib/ --element-path
~/git/diskimage-builder/elements/ fedora-minimal
[   0.0] Elements: base fedora-minimal
[   0.0] Expanded elements: base dib-init-system dib-run-parts fedora-minimal
install-types package-installs pkg-map redhat-common rpm-distro yum yum-minimal
[   0.0] Carried environment variables:
[   0.0] Preparing auxiliary data
[   0.2] Running: extra-data.d/10-create-pkg-map-dir
/tmp/dib.hfC3qu/aux/fake-bin/sudo: line 39: unset: `BASH_FUNC_module()': not
a valid identifier
virt-dib: error: external command
''/tmp/dib.hfC3qu/run-part-extra.sh'
'/tmp/dib.hfC3qu/aux/hooks/extra-data.d'
'10-create-pkg-map-dir'' exited
with error 1