2017-09-13 21:57:12 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
|
|
|
|
set -x
|
|
|
|
fi
|
|
|
|
set -eu
|
|
|
|
set -o pipefail
|
|
|
|
|
2017-11-01 02:50:15 +00:00
|
|
|
# get the directories in order
|
|
|
|
mkdir -p /etc/portage/profile
|
2017-09-13 21:57:12 +00:00
|
|
|
mkdir -p /etc/portage/package.keywords
|
2017-11-01 02:50:15 +00:00
|
|
|
mkdir -p /etc/portage/package.mask
|
|
|
|
mkdir -p /etc/portage/package.unmask
|
|
|
|
mkdir -p /etc/portage/package.use
|
2017-09-13 21:57:12 +00:00
|
|
|
|
|
|
|
# needed in order to install pip packages as root
|
|
|
|
echo 'dev-python/pip vanilla' >> /etc/portage/package.use/pip
|
|
|
|
# needed to create disk images
|
|
|
|
echo 'sys-fs/lvm2 -thin' >> /etc/portage/package.use/grub
|
|
|
|
echo 'sys-boot/grub device-mapper' >> /etc/portage/package.use/grub
|
|
|
|
|
|
|
|
# needed in order to install pip packages as root
|
|
|
|
echo '=dev-python/pip-9.0.1-r2 ~amd64' >> /etc/portage/package.keywords/pip
|