diskimage-builder/elements/redhat-common
Ben Nemec edd7477891 Save extended attributes when creating tar
The way redhat-common's extract-image script was creating the base
tarball caused file capabilities to get dropped, which meant that
things like ping in RHEL 7 images was unusable for regular users.
This change adds the necessary options to the tar call to maintain
as many extended attributes as possible.

--acls and --selinux are intentionally omitted, and the selinux
xattrs are filtered out because all of those items cause issues
in our chroot environment.  We restore selinux attributes at the
end of the build anyway so that shouldn't be a problem.

bz reference: https://bugzilla.redhat.com/show_bug.cgi?id=1144149

Change-Id: Ibff99ce9bde01bc5ecf95dc3a5d3e2cebe5015b9
2014-10-03 23:05:17 -05:00
..
bin Save extended attributes when creating tar 2014-10-03 23:05:17 -05:00
finalise.d Correction: if then statement code style. 2014-07-07 03:43:15 -07:00
install.d Use package-installs in more elements 2014-09-08 15:16:14 -04:00
pre-install.d Use package-installs in more elements 2014-09-08 15:16:14 -04:00
element-deps Use package-installs in more elements 2014-09-08 15:16:14 -04:00
README.md add some missing \n at end of file 2014-05-06 13:43:53 +02:00

Image installation steps common to RHEL and Fedora.

Overrides:

  • To use a non-default URL for downloading base cloud images, use the environment variable DIB_CLOUD_IMAGES
  • To download a non-default release of cloud images, use the environment variable DIB_RELEASE
  • Alternatively, set DIB_LOCAL_IMAGE to the local path of a qcow2 cloud image. This is useful in that you can use a customized or previously built cloud image from diskimage-builder as input. The cloud image does not have to have been built by diskimage-builder. It should be a full disk image, not just a filesystem image.