diskimage-builder/elements/fedora
Tim Serong 6da49c6d49 Use --numeric-owner when extracting base image
When extracting the base image without --numeric-owner, user and group
names in the tarball are mapped to uid/gid by the host.  This can cause
problems when building an image for some other distro than you're
running yourself.  For example, building an Ubuntu image on openSUSE
ends up with /var/cache/man in the image owned by 'proxy' (uid 13)
instead of 'man' (uid 6), because the host (openSUSE) uses uid 13 for
the 'man' user.  This particular man/proxy discrepancy results in
"fopen: Permission denied" errors when apt-get does its "Processing
triggers for man-db" thing in the Ubuntu system.  I wouldn't be
surprised if there were other kinks caused by this uid/gid mapping
discrepancy too, but that's the one I found so far.

The same thing can also happen with Fedora, but seems to be less likely,
or at least less obvious to me when building Fedora images on openSUSE.
But, IMO, it's better to be safe and just use --numeric-owner on all
base image untarring outside the chroot.

Change-Id: I9da5ac66dd182e7278fe4fee932093f61d35673a
2013-10-08 22:45:51 +11:00
..
bin Add mapping for atftpd in fedora/rhel 2013-09-26 10:38:44 -07:00
finalise.d Extracting common functionality for rpm based distros 2013-08-20 16:44:19 -04:00
install.d Install which on Fedora 2013-07-26 11:04:58 +01:00
pre-install.d Install fedora grub from cached rpm during finalise 2013-09-15 09:11:58 +10:00
root.d Use --numeric-owner when extracting base image 2013-10-08 22:45:51 +11:00
element-deps On Fedora, use Linux Foundation bzr lsb_release 2013-09-04 10:16:49 +12:00
README.md Migrate cloud image URL/Release options to DIB_. 2013-04-12 14:48:54 +01:00
source-repository-fedora On Fedora, use Linux Foundation bzr lsb_release 2013-09-04 10:16:49 +12:00

Use Fedora cloud images as the baseline for built disk images.

Overrides:

  • To use a non-default URL for downloading base Fedora cloud images, use the environment variable DIB_CLOUD_IMAGES
  • To download a non-default release of Fedora cloud images, use the environment variable DIB_RELEASE