Bug#586006: initramfs-tools: noisy resume
Package: initramfs-tools
Version: 0.96.1
Severity: normal
Tags: patch
User: ubuntu-devel@lists.ubuntu.com
Usertags: origin-ubuntu ubuntu-patch maverick
We had a bug report (https://bugs.launchpad.net/bugs/432585) a while
back about kinit saying things like "No resume image, doing normal
boot..." on startup. Scott James Remnant <scott@ubuntu.com> corrected
this by just throwing away stdout and stderr from /bin/resume, with this
changelog message:
* Silence output when trying to resume, since the only output is bitching
that we can't resume because we didn't hibernate in the first place.
LP: #432585.
Here's his patch, rebased on current git:
diff --git a/scripts/local-premount/resume b/scripts/local-premount/resume
index 11acfc7..1cfc479 100755
--- a/scripts/local-premount/resume
+++ b/scripts/local-premount/resume
@@ -57,7 +57,7 @@ esac
# hardcode path, uswsusp ships an resume binary too
if [ -n "${resume_offset}" ]; then
- /bin/resume ${resume} ${resume_offset}
+ /bin/resume ${resume} ${resume_offset} >/dev/null 2>&1
else
- /bin/resume ${resume}
+ /bin/resume ${resume} >/dev/null 2>&1
fi
Thanks,
--
Colin Watson [cjwatson@ubuntu.com]
Reply to: