add beaglebone-openrc

This commit is contained in:
Amy Winston
2016-11-09 20:19:22 +01:00
parent a1ff766b7a
commit abc0b6c1cd
7 changed files with 57 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
confs/entropy_arm
+21
View File
@@ -0,0 +1,21 @@
FROM sabayon/armhfp
MAINTAINER amynka <amynka@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
ADD ./uboot/uboot.img /opt/backup/uboot/
ADD ./uboot/MLO /opt/backup/uboot/
RUN /bin/bash /setup.sh && rm -rf /setup.sh
ADD ./firmware_modules.tar /lib
ADD ./boot.tar /boot
# Set environment variables.
ENV HOME /root
# Define working directory.
WORKDIR /
Binary file not shown.
Binary file not shown.
+35
View File
@@ -0,0 +1,35 @@
#!/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
# Prepare the rootfs
/usr/bin/equo i sys-apps/sysvinit sys-apps/openrc
/usr/bin/equo mask sys-apps/systemd-sysv-utils app-misc/sabayon-version
# /usr/bin/equo i sys-fs/udev sys-fs/udev-init-scripts
# /usr/bin/equo mask sys-apps/systemd
rc-update add ntpd
rc-update add NetworkManager
rc-update add sshd
echo -5 | equo conf update && equo cleanup
sed -i 's/#multifetch = 3/multifetch = 3/' /etc/entropy/client.conf
exit 0
Binary file not shown.
Binary file not shown.