Skip to contentSkip to conversation

Fix boot with user suspend and no resume= kernel argument

PATCH In review Andrey Borzenkov 2 participants 2 messages Mar 1, 2010 – Mar 4, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

---

 modules.d/95uswsusp/resume-uswsusp.sh |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
modules.d/95uswsusp/resume-uswsusp.sh +3 -1
index 9b18567..ce0e3d2 100755
@@ -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
#1 lore raw
Quoted 24 lines · Andrey Borzenkov

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 |    4 +++-
  1 files changed, 3 insertions(+), 1 deletions(-)
modules.d/95uswsusp/resume-uswsusp.sh +3 -2
index 9b18567..ce0e3d2 100755
@@ -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
 
--
Quoted 3 lines

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