2014-06-07 05:11:38 +00:00
|
|
|
From e7d92a233044614bc6eed412abd05dc99432a455 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Hannes Reinecke <hare@suse.de>
|
|
|
|
Date: Mon, 2 Jun 2014 14:46:55 +0200
|
|
|
|
Subject: [PATCH] 95resume: skip module for s390(x)
|
2014-05-28 16:30:59 +00:00
|
|
|
|
2014-06-07 05:11:38 +00:00
|
|
|
s390(x) kernels do not support suspend, so there is no need
|
|
|
|
to include this module.
|
2014-05-28 16:30:59 +00:00
|
|
|
|
|
|
|
Signed-off-by: Thomas Renninger <trenn@suse.de>
|
2014-06-07 05:11:38 +00:00
|
|
|
---
|
|
|
|
modules.d/95resume/module-setup.sh | 4 ++++
|
|
|
|
1 file changed, 4 insertions(+)
|
2014-05-28 16:30:59 +00:00
|
|
|
|
2014-06-07 05:11:38 +00:00
|
|
|
diff --git a/modules.d/95resume/module-setup.sh b/modules.d/95resume/module-setup.sh
|
|
|
|
index b1b4684..7f3cf24 100755
|
|
|
|
--- a/modules.d/95resume/module-setup.sh
|
|
|
|
+++ b/modules.d/95resume/module-setup.sh
|
2014-05-28 16:30:59 +00:00
|
|
|
@@ -4,6 +4,10 @@
|
|
|
|
|
|
|
|
# called by dracut
|
|
|
|
check() {
|
|
|
|
+ local _arch=$(uname -m)
|
|
|
|
+ # No suspend support on s390(x)
|
|
|
|
+ [ "$_arch" = "s390" -o "$_arch" = "s390x" ] && return 1
|
|
|
|
+
|
|
|
|
# No point trying to support resume, if no swap partition exist
|
|
|
|
[[ $hostonly ]] || [[ $mount_needs ]] && {
|
|
|
|
for fs in "${host_fs_types[@]}"; do
|
2014-06-07 05:11:38 +00:00
|
|
|
--
|
|
|
|
1.8.4.5
|
|
|
|
|