summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2013-06-13 09:29:17 +0200
committerHarald Hoyer <harald@redhat.com>2013-06-13 09:29:17 +0200
commitc6011f2add61e3b902fb385760fdaa9d8816f29a (patch)
tree369aa1ace71bc6e45380fcf640149ee74a88ddf5
parentf8b958dc624a63c48bfdf00cf11cc5d61169a099 (diff)
downloaddracut-c6011f2add61e3b902fb385760fdaa9d8816f29a.tar.gz
dracut-c6011f2add61e3b902fb385760fdaa9d8816f29a.tar.bz2
dracut-c6011f2add61e3b902fb385760fdaa9d8816f29a.zip
i18n: make the default font configurable
To set the default font for your distribution, add i18n_default_font="latarcyrheb-sun16" to your /lib/dracut/dracut.conf.d/01-dist.conf distribution config.
-rw-r--r--dracut.conf.d/fedora.conf.example1
-rwxr-xr-xmodules.d/10i18n/module-setup.sh2
2 files changed, 2 insertions, 1 deletions
diff --git a/dracut.conf.d/fedora.conf.example b/dracut.conf.d/fedora.conf.example
index 6389437f..3d6faa26 100644
--- a/dracut.conf.d/fedora.conf.example
+++ b/dracut.conf.d/fedora.conf.example
@@ -2,6 +2,7 @@
# i18n
i18n_vars="/etc/sysconfig/keyboard:KEYTABLE-KEYMAP /etc/sysconfig/i18n:SYSFONT-FONT,FONTACM-FONT_MAP,FONT_UNIMAP"
+i18n_default_font="latarcyrheb-sun16"
omit_drivers+=' .*/fs/ocfs/.* i2o_scsi'
stdloglvl=3
logfile=/var/log/dracut.log
diff --git a/modules.d/10i18n/module-setup.sh b/modules.d/10i18n/module-setup.sh
index 60a50e73..195364c2 100755
--- a/modules.d/10i18n/module-setup.sh
+++ b/modules.d/10i18n/module-setup.sh
@@ -14,7 +14,7 @@ depends() {
install() {
dracut_install -o $systemdutildir/systemd-vconsole-setup
KBDSUBDIRS=consolefonts,consoletrans,keymaps,unimaps
- DEFAULT_FONT=latarcyrheb-sun16
+ DEFAULT_FONT="${i18n_default_font:-LatArCyrHeb-16}"
I18N_CONF="/etc/locale.conf"
VCONFIG_CONF="/etc/vconsole.conf"