22 lines
735 B
Diff
22 lines
735 B
Diff
|
dracut: Do not add resume module on s390(x) arch
|
||
|
|
||
|
s390(x) kernels do not support suspend, no need to add this module.
|
||
|
|
||
|
Signed-off-by: Thomas Renninger <trenn@suse.de>
|
||
|
|
||
|
Index: dracut-037/modules.d/95resume/module-setup.sh
|
||
|
===================================================================
|
||
|
--- dracut-037.orig/modules.d/95resume/module-setup.sh
|
||
|
+++ dracut-037/modules.d/95resume/module-setup.sh
|
||
|
@@ -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
|