[scripts/*beagle*] properly setup openrc cache before finalizing the image

This commit is contained in:
Fabio Erculiani 2012-02-01 11:37:45 +01:00
parent 48b9252b28
commit c8b7c7fab0
2 changed files with 28 additions and 0 deletions

View File

@ -39,6 +39,19 @@ setup_boot() {
rc-update --update
}
setup_startup_caches() {
mount -t proc proc /proc
/lib/rc/bin/rc-depend -u
# Generate openrc cache
touch /lib/rc/init.d/softlevel
/etc/init.d/savecache start
/etc/init.d/savecache zap
ldconfig
ldconfig
umount /proc
}
setup_users() {
# setup root password to... root!
echo root:root | chpasswd
@ -64,6 +77,7 @@ setup_displaymanager
setup_users
setup_boot
setup_serial
setup_startup_caches
exit 0

View File

@ -31,6 +31,19 @@ setup_users() {
)
}
setup_startup_caches() {
mount -t proc proc /proc
/lib/rc/bin/rc-depend -u
# Generate openrc cache
touch /lib/rc/init.d/softlevel
/etc/init.d/savecache start
/etc/init.d/savecache zap
ldconfig
ldconfig
umount /proc
}
setup_serial() {
# Setup serial login
echo "s0:12345:respawn:/sbin/agetty 115200 ttyO0 vt100" >> /etc/inittab
@ -39,6 +52,7 @@ setup_serial() {
setup_boot
setup_users
setup_serial
setup_startup_caches
exit 0