From: Andrey Borzenkov Date: Thu, 4 Mar 2010 13:00:29 +0000 (+0100) Subject: Fix boot with user suspend and no resume= kernel argument X-Git-Tag: 005~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01b8cdffcac552c49fcf5a6b15ad592085bf0f4b;p=thirdparty%2Fdracut-ng.git Fix boot with user suspend and no resume= kernel argument Mandriva bug https://qa.mandriva.com/show_bug.cgi?id=57924. Check if dracut got resume= argument before calling /usr/sbin/resume --- diff --git a/modules.d/95uswsusp/resume-uswsusp.sh b/modules.d/95uswsusp/resume-uswsusp.sh index 9b1856711..ce0e3d234 100755 --- a/modules.d/95uswsusp/resume-uswsusp.sh +++ b/modules.d/95uswsusp/resume-uswsusp.sh @@ -8,4 +8,6 @@ case "$splash" in ;; esac -/usr/sbin/resume $a_splash "$resume" +if [ -n "$resume" ]; then + /usr/sbin/resume $a_splash "$resume" +fi