On 03/01/2010 07:10 PM, Andrey Borzenkov wrote:
Mandriva bug https://qa.mandriva.com/show_bug.cgi?id=57924. Check
if dracut got resume= argument before calling /usr/sbin/resume
Signed-off-by: Andrey Borzenkov<[email protected]>
---
modules.d/95uswsusp/resume-uswsusp.sh | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/modules.d/95uswsusp/resume-uswsusp.sh
b/modules.d/95uswsusp/resume-uswsusp.sh
index 9b18567..ce0e3d2 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
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
pushed
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html