dracut/0013-i18n-check-for-setfont-and-loadkeys-binaries.patch
Harald Hoyer fe48c9c4e5 dracut-032-23.git20130904
- fixed curl error with zero size kickstart file
Resolves: rhbz#989133
- fixed systemd-cat failure, when systemd is installed
  but not actually running
Resolves: rhbz#1002021
- do not fail on empty dracut module directories
Resolves: rhbz#1003153
2013-09-04 13:43:12 +02:00

26 lines
673 B
Diff

From 87bd8907a64991445af552740806d3949fc6d6ca Mon Sep 17 00:00:00 2001
From: Harald Hoyer <harald@redhat.com>
Date: Mon, 26 Aug 2013 10:19:49 +0200
Subject: [PATCH] i18n: check for setfont and loadkeys binaries
---
modules.d/10i18n/module-setup.sh | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/modules.d/10i18n/module-setup.sh b/modules.d/10i18n/module-setup.sh
index be9d90b..2a83728 100755
--- a/modules.d/10i18n/module-setup.sh
+++ b/modules.d/10i18n/module-setup.sh
@@ -4,6 +4,11 @@
check() {
[[ "$mount_needs" ]] && return 1
+
+ for i in setfont loadkeys kbd_mode; do
+ type -P "$i" >/dev/null || return 1
+ done
+
return 0
}