forked from prometheanfire/gentoo-cloud-prep
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgentoo-cloud.config
66 lines (50 loc) · 2.66 KB
/
gentoo-cloud.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
DIR="$( cd "$( dirname ${BASH_SOURCE[0]} )" && pwd )"
CONFIG_FILE=${CONFIG_FILE:-"${DIR}/custom.config"}
if [[ -f "$CONFIG_FILE" ]]; then
. "$CONFIG_FILE"
fi
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
# Build directories
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
# Gentoo mirror to use
MIRROR=${MIRROR:-"http://gentoo.osuosl.org"}
# Your catalyst store directory. MUST match your storedir setting in /etc/catalyst/catalyst.conf
CATALYST_DIR=${CATALYST_DIR:-"/var/tmp/catalyst"}
# The gentoo profile upon which to build the image
# profiles supported are as follows
# default/linux/amd64/13.0
# default/linux/amd64/13.0/no-multilib
# hardened/linux/amd64
# hardened/linux/amd64/no-multilib
# hardened/linux/amd64/selinux (eventually)
# hardened/linux/amd64/no-multilib/selinux (eventually)
PROFILE=${PROFILE:-"default/linux/amd64/13.0"}
#PROFILE=${PROFILE:-"hardened/linux/amd64"}
KERNEL_SOURCES="gentoo-sources"
#KERNEL_SOURCES="hardened-sources"
# GIT repository conataining the scripts
GIT_BASE_DIR=${GIT_BASE_DIR:-$DIR}
# Output directory for your builds
OUTDIR=${OUTDIR:-"${GIT_BASE_DIR}/out"}
# Mount point
MOUNT_DIR=${MOUNT_DIR:-'/mnt'}
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
# Build customization
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
# Use flags
STAGE4_USE="bash-completion bzip2 idm urandom ipv6 mmx sse sse2 -bindist -modules -X -gtk -nls -fortran glibc-omitfp screen utf8 dbus policykit ${STAGE4_USE:-""}"
# Packages that will be merged
STAGE4_PACKAGES="eix vim bc cloud-init syslog-ng logrotate vixie-cron dhcpcd sudo gentoolkit iproute2 grub:2 lsb-release gptfdisk dmidecode acpid pciutils ntp dev-vcs/git app-misc/screen firewalld lzop certbot ${STAGE4_PACKAGES:-""}"
# Rc scripts
STAGE4_RCADD="syslog-ng|default sshd|default vixie-cron|default cloud-config|default cloud-init-local|default cloud-init|default cloud-final|default netmount|default acpid|default dhcpcd|default net.lo|default ${STAGE4_RCADD:-""}"
# Post script to run after the stage4 is built
STAGE4_FSSCRIPT=${STAGE4_FSSCRIPT:-"${DIR}/prep.sh"}
# Add portage to the final image? (0 || 1)
# Note that if you choose not to install portage, you still can install it later by runing "sudo emerge-webrsync"
ADD_PORTAGE=${ADD_PORTAGE:-1}
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
# Internal configs, SHOULD not be changed.
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
BUILD_DIR="${CATALYST_DIR}/builds"
PORTAGE_DIR="${CATALYST_DIR}/snapshots"
DATE=${DATE:-"$(date +%Y%m%d)"}