2024-10-31 20:03:00 +00:00
|
|
|
From 4a6806efae05b453bb9b93efe961fb1033bb562b Mon Sep 17 00:00:00 2001
|
2024-08-19 10:48:17 +00:00
|
|
|
From: Pavel Valena <pvalena@redhat.com>
|
|
|
|
Date: Sat, 17 Aug 2024 00:39:17 +0200
|
2024-10-31 20:03:00 +00:00
|
|
|
Subject: [PATCH 22/32] fix(resume): do not include resume if swap is on
|
2024-08-19 10:48:17 +00:00
|
|
|
netdevice
|
|
|
|
|
|
|
|
Additional fix, restoring previous behavior identical to RHEL-9.
|
|
|
|
|
|
|
|
rhel-only
|
|
|
|
|
|
|
|
Resolves: RHEL-53350
|
|
|
|
---
|
|
|
|
modules.d/95resume/module-setup.sh | 6 +++---
|
|
|
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/modules.d/95resume/module-setup.sh b/modules.d/95resume/module-setup.sh
|
|
|
|
index c0f04a6c..785f681a 100755
|
|
|
|
--- a/modules.d/95resume/module-setup.sh
|
|
|
|
+++ b/modules.d/95resume/module-setup.sh
|
|
|
|
@@ -4,9 +4,6 @@
|
|
|
|
# shellcheck disable=SC2317
|
|
|
|
check() {
|
|
|
|
|
|
|
|
- # Always include resume module
|
|
|
|
- return 0
|
|
|
|
-
|
|
|
|
swap_on_netdevice() {
|
|
|
|
local _dev
|
|
|
|
for _dev in "${swap_devs[@]}"; do
|
|
|
|
@@ -23,6 +20,9 @@ check() {
|
|
|
|
# hibernation support requested on kernel command line
|
|
|
|
return 0
|
|
|
|
else
|
|
|
|
+ # always include resume module when not on netdevice
|
|
|
|
+ return 0
|
|
|
|
+
|
|
|
|
# resume= not set on kernel command line
|
|
|
|
if [[ -f /sys/power/resume ]]; then
|
|
|
|
if [[ "$(< /sys/power/resume)" == "0:0" ]]; then
|
|
|
|
--
|
|
|
|
2.42.0
|
|
|
|
|