[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#586006: initramfs-tools: noisy resume



reassign 586006 klibc
thanks

On Tue, Jun 15, 2010 at 05:21:27PM +0100, Colin Watson wrote:
> 
> 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,

this should be reassigned to klibc and is fixed in my latest
patch queue to hpa with
 [klibc] resume: silence warning on resume try

will hack next weekend on that queue to finalize it's submission.

thank you.



Reply to: