]> git.pld-linux.org Git - projects/geninitrd.git/commitdiff
Disable swsusp support when swap device not found.
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 26 Dec 2020 00:04:09 +0000 (01:04 +0100)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 26 Dec 2020 00:06:29 +0000 (01:06 +0100)
mod-swsusp.sh

index d6ade583f42ddf8d9a15fdc3faaf6f24600334eb..922453608f0632770606d05587b447f33e19b2cc 100644 (file)
@@ -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
This page took 0.61429 seconds and 4 git commands to generate.