diskimage-builder/elements/gentoo
Matthew Thode dacfc23c36
Fix building on gentoo hosts
This patch fixes the profile autodetect.  If the profile was passed at install
time, it would overridden by the environment.d script.  This was fixed by
accepting the value passed by the user, if one was passed.

The enviroment.d file is run outside of chroot, because of this eselect will
not be available on non-gentoo systems.  We change the behavior to work
elsewhere, it was not working on non-gentoo systems and giving bad results on
gentoo systems (returing values from the host, not the guest being built).

This patch also fixes shm detection by checking if it is mounted already.

Change-Id: Ie58d8e19529a731bfbc9eeb4bb246988d1aaa772
2016-02-21 22:46:13 -06:00
..
bin Fix building on gentoo hosts 2016-02-21 22:46:13 -06:00
environment.d Fix building on gentoo hosts 2016-02-21 22:46:13 -06:00
post-install.d Remove eclean-dist as it's not available by default 2016-02-12 00:31:27 +00:00
pre-install.d Fix Gentoo hardened support 2016-02-01 20:56:37 -06:00
root.d Merge "Only match #!/bin/bash in scripts" 2016-02-10 08:35:09 +00:00
element-deps Fix Gentoo hardened support 2016-02-01 20:56:37 -06:00
element-provides Initial add of gentoo support for diskimage-builder 2016-01-12 19:15:00 -06:00
gentoo-releng.gpg Initial add of gentoo support for diskimage-builder 2016-01-12 19:15:00 -06:00
package-installs.yaml Fix Gentoo hardened support 2016-02-01 20:56:37 -06:00
README.rst Initial add of gentoo support for diskimage-builder 2016-01-12 19:15:00 -06:00

Gentoo

Use a Gentoo cloud image as the baseline for built disk images. The images are located in profile specific sub directories:

http://distfiles.gentoo.org/releases/amd64/autobuilds/

As of this writing, only x86_64 images are available.

Notes:

  • There are very frequently new automated builds that include changes that happen during the product maintenance. The download directories contain an unversioned name and a versioned name. The unversioned name will always point to the latest image, but will frequently change its content. The versioned one will never change content, but will frequently be deleted and replaced by a newer build with a higher version-release number.

  • Other profiles can be used by exporting GENTOO_PROFILE with a valid profile. A list of valid profiles follows:

    default/linux/amd64/13.0 default/linux/amd64/13.0/no-multilib hardened/linux/amd64 hardened/linux/amd64/no-multilib