mkinitrd unification across distributions
 help / color / mirror / Atom feed
From: Dave Young <dyoung-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Consus <consus-N9AOi2cAC9ZBDgjK7y7TUQ@public.gmane.org>,
	"initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Subject: Re: [dracut] weird code in dracut-logger.sh
Date: Mon, 24 Sep 2012 09:48:56 +0800	[thread overview]
Message-ID: <505FBC08.3020905@redhat.com> (raw)
In-Reply-To: <20120922161129.GA952-oV2J+Z9pNWCehbqAyNb4It9vCcoqechNLybGJaePZcc@public.gmane.org>

Hi,

I'm not sure about this issue. Sending to dracut mainling list.

On 09/23/2012 12:11 AM, Consus wrote:

> Hi,
> 
> I want to ask you about some piece of code I found lately in dracut-logger.sh:
> 
> 141 || if (( $sysloglvl >= 0 )); then
> 142 ||    if ! [ -S /dev/log -a -w /dev/log ] || ! command -v logger >/dev/null
> 143 ||    then
> 144 ||        # We cannot log to syslog, so turn this facility off.
> 145 ||        sysloglvl=0
> 
> I may be wrong, but this should be changed to (( $sysloglvl > 0 )). For
> now this code causes error messages even if this facility is disabled.
> For example, with fileloglvl=0 I'm getting 
> 
>     /usr/lib/dracut/dracut-logger.sh: line 122: : No such file or directory
> 
> on every dracut run (with -1 works fine). So I suggest either adding -1
> as "facility disabled" to documentation or rewriting these checks.
> 



-- 
Thanks
Dave

           reply	other threads:[~2012-09-24  1:48 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20120922161129.GA952-oV2J+Z9pNWCehbqAyNb4It9vCcoqechNLybGJaePZcc@public.gmane.org>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=505FBC08.3020905@redhat.com \
    --to=dyoung-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=consus-N9AOi2cAC9ZBDgjK7y7TUQ@public.gmane.org \
    --cc=harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox