rpi-openrc: add experimental flavor
This commit is contained in:
@@ -0,0 +1 @@
|
||||
confs/entropy_arm
|
||||
@@ -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 /
|
||||
Executable
+29
@@ -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
|
||||
Reference in New Issue
Block a user