[projects/geninitrd] Disable swsusp support when swap device not found.
arekm
arekm at pld-linux.org
Sat Dec 26 01:06:45 CET 2020
commit 55248df65f545d53bb1cfb56edcf5a699a45f52f
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sat Dec 26 01:04:09 2020 +0100
Disable swsusp support when swap device not found.
mod-swsusp.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/mod-swsusp.sh b/mod-swsusp.sh
index d6ade58..9224536 100644
--- a/mod-swsusp.sh
+++ b/mod-swsusp.sh
@@ -15,7 +15,8 @@ setup_mod_swsusp() {
swap_dev="$(awk '/^\/dev\// { print $1 }' /proc/swaps | head -1)"
if [ -z "$swap_dev" ]; then
- warn "Cannot determine swap device. You may try add specific device to kernel command line"
+ warn "Cannot determine swap device. You may try add specific device to kernel command line. Disabling swsusp support."
+ USE_SWSUSP=no
else
verbose "swsusp: will try to resume from swap device $swap_dev"
fi
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/geninitrd.git/commitdiff/55248df65f545d53bb1cfb56edcf5a699a45f52f
More information about the pld-cvs-commit
mailing list