rpi-openrc: add experimental flavor

This commit is contained in:
mudler
2016-10-08 19:18:50 +02:00
parent ea2787282e
commit 174bdb482c
3 changed files with 46 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
confs/entropy_arm
+16
View File
@@ -0,0 +1,16 @@
FROM sabayon/rpi-armhfp
MAINTAINER mudler <mudler@sabayonlinux.org>
# Set locales to en_US.UTF-8
ENV LC_ALL=en_US.UTF-8
# Perform post-upgrade tasks (mirror sorting, updating repository db)
ADD ./scripts/setup.sh /setup.sh
RUN /bin/bash /setup.sh && rm -rf /setup.sh
# Set environment variables.
ENV HOME /root
# Define working directory.
WORKDIR /
+29
View File
@@ -0,0 +1,29 @@
#!/bin/bash
/usr/sbin/env-update
. /etc/profile
export ACCEPT_LICENSE=*
UPGRADE_REPO="sabayon-limbo"
sed -i 's/multifetch = 3/#multifetch = 3/' /etc/entropy/client.conf
if [ -n "${UPGRADE_REPO}" ]; then
echo "Upgrading system by enabling ${UPGRADE_REPO}"
equo repo enable "${UPGRADE_REPO}"
FORCE_EAPI=2 equo update
/usr/bin/equo repo mirrorsort "${UPGRADE_REPO}" # ignore errors
/usr/bin/equo repo mirrorsort sabayonlinux.org
ETP_NONINTERACTIVE=1 equo upgrade --fetch
ETP_NONINTERACTIVE=1 equo upgrade --purge
echo "-5" | equo conf update
fi
# Be sure to have this on the image, always.
/usr/bin/equo i sys-apps/sysvinit sys-apps/openrc
/usr/bin/equo mask sys-apps/systemd-sysv-utils app-misc/sabayon-version
echo -5 | equo conf update && equo cleanup
sed -i 's/#multifetch = 3/multifetch = 3/' /etc/entropy/client.conf
exit 0