diskimage-builder/diskimage_builder/elements/fedora
Ian Wienand 5bc9e87da1 centos: avoid head pipe failure
I just saw in the trace output of a failure

  > grep -o 'CentOS-.[^>]*GenericCloud-.[^>]*.qcow2'
  > sort -r
  > head -1
  sort: fflush failed: 'standard output': Broken pipe
  sort: write error

i.e. the "head -1" has exited after reading one line, but "sort -r"
still wants to write and thus has hit a pipe failure, and because we
run with "-o pipefail" this has halted the script.

This seems like it has been there more or less forever, maybe we just
got lucky hitting it now?  Anyway, we can work around this by using a
process substitution and passing the output of this into head, this
way we won't hit a pipe failure.

I also updated the fedora path as it does the same thing.

Change-Id: I44d97e5bb31702aacf396e0229329a2ef9c64f2f
2022-04-26 17:28:00 +10:00
..
environment.d Update fedora element testing to F35 2022-03-11 14:53:00 +11:00
pre-install.d Fix hooks order for CentOS/Fedora when mirror used 2021-03-04 10:54:52 +00:00
root.d centos: avoid head pipe failure 2022-04-26 17:28:00 +10:00
test-elements/build-succeeds Update fedora element testing to F35 2022-03-11 14:53:00 +11:00
README.rst Update platform support to describe stable testing 2022-02-16 10:40:09 +11:00
element-deps Run dib-run-parts out of /tmp 2017-04-05 13:11:22 +10:00
element-provides Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
package-installs.yaml Trivial fix typos 2017-05-31 11:17:05 +07:00

README.rst

fedora

Use Fedora cloud images as the baseline for built disk images. For further details see the redhat-common README.

Releases

This element targets the current and previous version of Fedora; these values clearly changes over time. To fix the version set the DIB_RELEASE variable to the Fedora version (e.g. 35). The default value is the current best supported version (i.e. it may change upward at any given release to support the next Fedora).

Environment Variables

DIB_DISTRIBUTION_MIRROR:
Required

No

Default

None

Description

To use a Fedora Yum mirror, set this variable to the mirror URL before running bin/disk-image-create. This URL should point to the directory containing the releases/updates/development and extras directories.

Example

DIB\_DISTRIBUTION\_MIRROR=http://download.fedoraproject.org/pub/fedora/linux