diskimage-builder/lib
James Slagle 813b4bc242 Check return code of element-info
Ensure the return code of element-info is actually checked by moving the
export IMAGE_ELEMENT to the subsequent line.

A recent change (Ic0a061995e2ae708c95a535cba6237bff58f7d93) exported the
IMAGE_ELEMENT variable. This caused the return code of element-info to not
actually be checked, since the export command is now checked instead and
almost always will return 0.

This caused a misleading error message when using diskimage-builder with an
unknown element since the script didn't exit when it should have:
$ bin/disk-image-create -a amd64 foobar vm
Building elements: base  foobar vm
ERROR: Element 'foobar' not found in 'bin/../elements'
Expanded element dependencies to:
Building in /var/tmp/image.DuIDY1lW
Please include at least one distribution root element.

Change-Id: I3d9c02bf0b1a4f320280185dd3fab0697d2c92f2
2014-05-30 15:41:05 -04:00
..
common-defaults Make sure sbin paths are in $PATH 2013-12-16 14:42:59 -05:00
common-functions Check return code of element-info 2014-05-30 15:41:05 -04:00
die Fix copyrights for HP work. 2012-11-15 16:20:32 +13:00
img-defaults Move /tmp/ccache setup to base element 2013-10-10 16:27:09 +11:00
img-functions Respect inmutable resolv.conf in the image 2014-04-25 16:35:44 -07:00
ramdisk-defaults Remove BUSYBOX variable from ramdisk-defaults 2013-11-11 14:36:15 +01:00
ramdisk-functions Include /lib64 into the deploy ramdisk on openSUSE 2014-01-27 09:29:12 +01:00