From b8af655e501961e66ee9213d20e01c72e1421293 Mon Sep 17 00:00:00 2001 From: Chris Hofstaedtler Date: Sun, 22 Dec 2024 18:34:11 +0100 Subject: [PATCH] console-setup: create setupcon cache Previously console-setup would on startup find and copy the keymap and console font into /etc/console-setup. This moves this caching step to grml-live execution time, and thus out of the (first) boot. Files affected: * /etc/console-setup/cached_UTF-8_del.kmap.gz * /etc/console-setup/cached_Uni3-Terminus16.psf.gz * /etc/console-setup/cached_setup_font.sh * /etc/console-setup/cached_setup_keyboard.sh * /etc/console-setup/cached_setup_terminal.sh --- etc/grml/fai/config/scripts/GRMLBASE/26-console-setup | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/etc/grml/fai/config/scripts/GRMLBASE/26-console-setup b/etc/grml/fai/config/scripts/GRMLBASE/26-console-setup index 3ad1a2d8..05f1e076 100755 --- a/etc/grml/fai/config/scripts/GRMLBASE/26-console-setup +++ b/etc/grml/fai/config/scripts/GRMLBASE/26-console-setup @@ -11,5 +11,10 @@ set -e fcopy -M -v /etc/default/console-setup +# Have setupcon write its cache into /etc/console-setup, to avoid doing +# this on each live boot. +rm -f "${target}"/etc/console-setup/cached* +$ROOTCMD setupcon --save-only + ## END OF FILE ################################################################# # vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=2