]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Fix boot with user suspend and no resume= kernel argument
authorAndrey Borzenkov <arvidjaar@mail.ru>
Thu, 4 Mar 2010 13:00:29 +0000 (14:00 +0100)
committerHarald Hoyer <harald@redhat.com>
Thu, 4 Mar 2010 13:06:48 +0000 (14:06 +0100)
Mandriva bug https://qa.mandriva.com/show_bug.cgi?id=57924. Check
if dracut got resume= argument before calling /usr/sbin/resume

modules.d/95uswsusp/resume-uswsusp.sh

index 9b1856711a43d9e0f2b6cfb7725e58a2c284e12e..ce0e3d234abceb68b2c776cdb9866ecfec1a2305 100755 (executable)
@@ -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