[scripts/*beagle*] properly setup openrc cache before finalizing the image
This commit is contained in:
parent
48b9252b28
commit
c8b7c7fab0
@ -39,6 +39,19 @@ setup_boot() {
|
|||||||
rc-update --update
|
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_users() {
|
||||||
# setup root password to... root!
|
# setup root password to... root!
|
||||||
echo root:root | chpasswd
|
echo root:root | chpasswd
|
||||||
@ -64,6 +77,7 @@ setup_displaymanager
|
|||||||
setup_users
|
setup_users
|
||||||
setup_boot
|
setup_boot
|
||||||
setup_serial
|
setup_serial
|
||||||
|
setup_startup_caches
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
@ -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() {
|
||||||
# Setup serial login
|
# Setup serial login
|
||||||
echo "s0:12345:respawn:/sbin/agetty 115200 ttyO0 vt100" >> /etc/inittab
|
echo "s0:12345:respawn:/sbin/agetty 115200 ttyO0 vt100" >> /etc/inittab
|
||||||
@ -39,6 +52,7 @@ setup_serial() {
|
|||||||
setup_boot
|
setup_boot
|
||||||
setup_users
|
setup_users
|
||||||
setup_serial
|
setup_serial
|
||||||
|
setup_startup_caches
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user