Bug#473217: Wishlist: Don't run ckbcomp at boot-time (use a saved keymap instead)
Package: console-setup
Version: 1.16
Severity: wishlist
The setupcon command, as run by console-setup during boot, runs ckbcomp
to generate a console keymap from the X keymap files. This can take on
the order of half a second CPU time.
setupcon already saves the resulting keymap in
/etc/console-setup/boottime.kmap.gz, and has support for using that
instead. However this is only used when /usr is not mounted. I'm not
interested in repartitioning my system to use this feature.
My wish is that this method would be used even when /usr is mounted. It
may require some documentation but I think it's sane enough.
It looks like Ubuntu (my primary OS), have altered the console-setup
init script to regenerate the keymap if run manually (i.e. not by init):
# Are we running from init?
run_by_init()
{
([ "$previous" ] && [ "$runlevel" ]) || [ "$runlevel" = S ]
}
...
elif ! run_by_init; then
log_action_begin_msg "Saving console font and keymap for next boot"
if setupcon --save-only; then
log_action_end_msg 0
else
log_action_end_msg $?
fi
fi
So if you edit /etc/default/console-setup manually, you then need to run
"/etc/init.d/console-setup restart" to apply the changes and regenerate
the keymap. This happens automatically when dpkg-reconfigure is used.
Reply to: