molecules/scripts/mkloopcard_beaglebone_chroot_hook.sh

24 lines
566 B
Bash
Raw Normal View History

#!/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