File 0138-warpclock-Do-not-use-warpclock-module-on-S390-x-hwcl.patch of Package dracut.892

From 56b5871a7336b1d90c76a282fa3d7f76e7f10769 Mon Sep 17 00:00:00 2001
From: Thomas Renninger <trenn@suse.de>
Date: Thu, 14 Aug 2014 16:59:16 +0200
Subject: warpclock: Do not use warpclock module on S390(x), hwclock does not
 exist there

bnc#884513

Signed-off-by: Thomas Renninger <trenn@suse.de>
---
 modules.d/00warpclock/module-setup.sh |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/modules.d/00warpclock/module-setup.sh b/modules.d/00warpclock/module-setup.sh
index 5aec4eb..9af1ee7 100755
--- a/modules.d/00warpclock/module-setup.sh
+++ b/modules.d/00warpclock/module-setup.sh
@@ -4,6 +4,10 @@
 
 # called by dracut
 check() {
+    # hwclock does not exist on S390(x), bail out silently then
+    local _arch=$(uname -m)
+    [ "$_arch" = "s390" -o "$_arch" = "s390x" ] && return 1
+
     [ -e /etc/localtime -a -e /etc/adjtime ] || return 1
     require_binaries /sbin/hwclock || return 1
 }
-- 
1.7.6.1