diff --git a/beaglebone-openrc/.gitignore b/beaglebone-openrc/.gitignore new file mode 100644 index 0000000..52811b4 --- /dev/null +++ b/beaglebone-openrc/.gitignore @@ -0,0 +1 @@ +confs/entropy_arm diff --git a/beaglebone-openrc/Dockerfile b/beaglebone-openrc/Dockerfile new file mode 100644 index 0000000..8c006d7 --- /dev/null +++ b/beaglebone-openrc/Dockerfile @@ -0,0 +1,21 @@ +FROM sabayon/armhfp + +MAINTAINER amynka + +# 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 / diff --git a/beaglebone-openrc/boot.tar b/beaglebone-openrc/boot.tar new file mode 100644 index 0000000..5de5c00 Binary files /dev/null and b/beaglebone-openrc/boot.tar differ diff --git a/beaglebone-openrc/firmware_modules.tar b/beaglebone-openrc/firmware_modules.tar new file mode 100644 index 0000000..a2f4217 Binary files /dev/null and b/beaglebone-openrc/firmware_modules.tar differ diff --git a/beaglebone-openrc/scripts/setup.sh b/beaglebone-openrc/scripts/setup.sh new file mode 100755 index 0000000..7f17450 --- /dev/null +++ b/beaglebone-openrc/scripts/setup.sh @@ -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 diff --git a/beaglebone-openrc/uboot/MLO b/beaglebone-openrc/uboot/MLO new file mode 100644 index 0000000..0896565 Binary files /dev/null and b/beaglebone-openrc/uboot/MLO differ diff --git a/beaglebone-openrc/uboot/u-boot.img b/beaglebone-openrc/uboot/u-boot.img new file mode 100644 index 0000000..762edf5 Binary files /dev/null and b/beaglebone-openrc/uboot/u-boot.img differ