[scripts/*beagle*] properly setup openrc cache before finalizing the image
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user