molecules/scripts/mkloopcard_beaglebone_chroot_hook.sh
2012-01-26 13:33:35 +01:00

26 lines
588 B
Bash
Executable File

#!/bin/sh
# This script is executed inside the image chroot before packing up.
# Architecture/platform specific code goes here, like kernel install
# and configuration
env-update
. /etc/profile
# enable sshd by default
rc-update add sshd default
# TODO: error out here when linux-beaglebone is there
# "equo update" is done by inner_source_chroot_update script
# which directive is appended by iso_build.sh script
equo install sys-kernel/linux-beaglebone
eselect uimage set 1
# setup root password to... root!
echo root:root | chpasswd
# cleaning up deps
rc-update --update
exit 0