Skip to content

Commit

Permalink
95resume: always install this module
Browse files Browse the repository at this point in the history
We can't always correctly decide if the resume module is needed.
So let's play safe and always include it.

see: dracutdevs/dracut#924

RHEL-only

Resolves: #1926544
  • Loading branch information
lnykryn committed Aug 17, 2022
1 parent 4ec966b commit 05b5382
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions modules.d/95resume/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,6 @@

# called by dracut
check() {
swap_on_netdevice() {
local _dev
for _dev in "${swap_devs[@]}"; do
block_is_netdevice "$_dev" && return 0
done
return 1
}

# Only support resume if hibernation is currently on
# and no swap is mounted on a net device
[[ $hostonly ]] || [[ $mount_needs ]] && {
swap_on_netdevice || [[ "$(cat /sys/power/resume)" == "0:0" ]] && return 255
}

return 0
}

Expand Down

0 comments on commit 05b5382

Please sign in to comment.