]> git.ipfire.org Git - thirdparty/dracut.git/commit
fix(resume): correct call to block_is_netdevice function
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Fri, 1 Apr 2022 08:04:30 +0000 (10:04 +0200)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Sat, 9 Apr 2022 08:11:46 +0000 (08:11 +0000)
commita7a4b76c4ad5794f5f8a24ecd5b495f1512d05f7
treef29a4f556eba08e03985b419f687cc695aa4c329
parent0afa840e111e63da14edcb655886734b45d61c4b
fix(resume): correct call to block_is_netdevice function

The block_is_netdevice function requires the device in <maj:min>
format, but the swap_devs array is populated with the content of
/proc/swaps, which prints the devices using their paths from /dev.

This causes the check method to never detect if swap is mounted on a
network device.
modules.d/95resume/module-setup.sh