Skip to content

Commit

Permalink
fix(resume): do not include resume if swap is on netdevice
Browse files Browse the repository at this point in the history
Additional fix, restoring previous behavior identical to RHEL-9.

rhel-only

Resolves: RHEL-53350
  • Loading branch information
pvalena committed Aug 19, 2024
1 parent 458e2a4 commit 23a7d5d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules.d/95resume/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 23a7d5d

Please sign in to comment.