[molecules/beaglebone] reorganize molecules, drop 16GB image in favour of 2GB
This commit is contained in:
parent
179cdd0bb4
commit
ea86e42014
@ -1,5 +1,12 @@
|
|||||||
# List of packages to add on the BeagleBoard xM
|
# List of packages to add on the BeagleBoard xM
|
||||||
packages_to_add:
|
packages_to_add:
|
||||||
|
app-misc/sabayonlive-tools,
|
||||||
|
app-misc/sabayon-skel,
|
||||||
|
app-admin/syslog-ng,
|
||||||
|
net-fs/nfs-utils,
|
||||||
|
net-misc/ntp,
|
||||||
|
sys-apps/keyboard-configuration-helpers,
|
||||||
|
sys-apps/language-configuration-helpers,
|
||||||
sys-kernel/linux-beaglebone
|
sys-kernel/linux-beaglebone
|
||||||
|
|
||||||
# List of packages to remove from the BeagleBoard xM image
|
# List of packages to remove from the BeagleBoard xM image
|
||||||
|
@ -1,24 +0,0 @@
|
|||||||
%import /sabayon/molecules/arm-base.common
|
|
||||||
%import /sabayon/molecules/beaglebone.common
|
|
||||||
|
|
||||||
# Release desc (the actual release description)
|
|
||||||
release_desc: armv7a BeagleBone
|
|
||||||
|
|
||||||
# Release Version (used to generate release_file)
|
|
||||||
release_version: 8
|
|
||||||
|
|
||||||
# Specify image file name (image file name will be automatically
|
|
||||||
# produced otherwise)
|
|
||||||
image_name: Sabayon_Linux_8_armv7a_BeagleBone_Base_16GB.img
|
|
||||||
|
|
||||||
# Specify the image file size in Megabytes. This is mandatory.
|
|
||||||
# To avoid runtime failure, make sure the image is large enough to fit your
|
|
||||||
# chroot data.
|
|
||||||
image_mb: 16000
|
|
||||||
|
|
||||||
# Path to boot partition data (MLO, u-boot.img etc)
|
|
||||||
source_boot_directory: /sabayon/boot/arm/beaglebone
|
|
||||||
|
|
||||||
# External script that will generate the image file.
|
|
||||||
# The same can be copied onto a MMC by using dd
|
|
||||||
image_generator_script: /sabayon/scripts/beaglebone_image_generator_script.sh
|
|
@ -9,12 +9,12 @@ release_version: 8
|
|||||||
|
|
||||||
# Specify image file name (image file name will be automatically
|
# Specify image file name (image file name will be automatically
|
||||||
# produced otherwise)
|
# produced otherwise)
|
||||||
image_name: Sabayon_Linux_8_armv7a_BeagleBone_Base_8GB.img
|
image_name: Sabayon_Linux_8_armv7a_BeagleBone_Base_2GB.img
|
||||||
|
|
||||||
# Specify the image file size in Megabytes. This is mandatory.
|
# Specify the image file size in Megabytes. This is mandatory.
|
||||||
# To avoid runtime failure, make sure the image is large enough to fit your
|
# To avoid runtime failure, make sure the image is large enough to fit your
|
||||||
# chroot data.
|
# chroot data.
|
||||||
image_mb: 7800
|
image_mb: 2000
|
||||||
|
|
||||||
# Path to boot partition data (MLO, u-boot.img etc)
|
# Path to boot partition data (MLO, u-boot.img etc)
|
||||||
source_boot_directory: /sabayon/boot/arm/beaglebone
|
source_boot_directory: /sabayon/boot/arm/beaglebone
|
@ -38,14 +38,12 @@ export LANGUAGE="en_US.UTF-8"
|
|||||||
|
|
||||||
if [ "${ACTION}" = "weekly" ]; then
|
if [ "${ACTION}" = "weekly" ]; then
|
||||||
ARM_SOURCE_SPECS=(
|
ARM_SOURCE_SPECS=(
|
||||||
|
"sabayon-arm-beaglebone-base-2G.spec"
|
||||||
"sabayon-arm-beaglebone-base-4G.spec"
|
"sabayon-arm-beaglebone-base-4G.spec"
|
||||||
"sabayon-arm-beaglebone-base-8G.spec"
|
|
||||||
"sabayon-arm-beaglebone-base-16G.spec"
|
|
||||||
)
|
)
|
||||||
ARM_SOURCE_SPECS_IMG=(
|
ARM_SOURCE_SPECS_IMG=(
|
||||||
|
"Sabayon_Linux_DAILY_armv7a_BeagleBone_Base_2GB.img"
|
||||||
"Sabayon_Linux_DAILY_armv7a_BeagleBone_Base_4GB.img"
|
"Sabayon_Linux_DAILY_armv7a_BeagleBone_Base_4GB.img"
|
||||||
"Sabayon_Linux_DAILY_armv7a_BeagleBone_Base_8GB.img"
|
|
||||||
"Sabayon_Linux_DAILY_armv7a_BeagleBone_Base_16GB.img"
|
|
||||||
)
|
)
|
||||||
SOURCE_SPECS=()
|
SOURCE_SPECS=()
|
||||||
SOURCE_SPECS_ISO=()
|
SOURCE_SPECS_ISO=()
|
||||||
|
@ -6,19 +6,39 @@
|
|||||||
env-update
|
env-update
|
||||||
. /etc/profile
|
. /etc/profile
|
||||||
|
|
||||||
# enable sshd by default
|
setup_boot() {
|
||||||
rc-update add sshd default
|
# enable sshd by default
|
||||||
|
rc-update add sshd default
|
||||||
|
# select the first available kernel
|
||||||
|
eselect uimage set 1
|
||||||
|
# cleaning up deps
|
||||||
|
rc-update --update
|
||||||
|
}
|
||||||
|
|
||||||
# select the first available kernel
|
setup_users() {
|
||||||
eselect uimage set 1
|
# setup root password to... root!
|
||||||
|
echo root:root | chpasswd
|
||||||
|
# setup normal user "sabayon"
|
||||||
|
(
|
||||||
|
if [ ! -x "/sbin/sabayon-functions.sh" ]; then
|
||||||
|
echo "no /sbin/sabayon-functions.sh found"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
. /sbin/sabayon-functions.sh
|
||||||
|
sabayon_setup_live_user "sabayon" || exit 1
|
||||||
|
# setup "sabayon" password to... sabayon!
|
||||||
|
echo "sabayon:sabayon" | chpasswd
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
# setup root password to... root!
|
setup_serial() {
|
||||||
echo root:root | chpasswd
|
# Setup serial login
|
||||||
# cleaning up deps
|
echo "s0:12345:respawn:/sbin/agetty 115200 ttyO0 vt100" >> /etc/inittab
|
||||||
rc-update --update
|
}
|
||||||
|
|
||||||
# Setup serial login
|
setup_boot
|
||||||
echo "s0:12345:respawn:/sbin/agetty 115200 ttyO0 vt100" >> /etc/inittab
|
setup_users
|
||||||
|
setup_serial
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user