[molecules/*] move beaglebone dependent code to separate script files

This commit is contained in:
Fabio Erculiani
2012-01-26 13:19:09 +01:00
parent 4c67f10e33
commit 8a8e5e092d
7 changed files with 56 additions and 18 deletions

View File

@@ -0,0 +1,23 @@
#!/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
# setup root password to... root!
echo root:root | chpasswd
# cleaning up deps
rc-update --update
exit 0