[molecules/*] move beaglebone dependent code to separate script files
This commit is contained in:
23
scripts/mkloopcard_beaglebone_chroot_hook.sh
Executable file
23
scripts/mkloopcard_beaglebone_chroot_hook.sh
Executable 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
|
||||
|
||||
Reference in New Issue
Block a user