Re: [PATCH 44/48] Save error messages to /dev/tty9.

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



On Fri, 2010-07-16 at 14:09 +0200, Thomas Bächler wrote:
> Am 30.06.2010 23:47, schrieb Victor Lowther:
> > ---
> >  functions |    4 ++++
> >  1 files changed, 4 insertions(+), 0 deletions(-)
> > 
> > diff --git a/functions b/functions
> > index 9ec8b5e..f1dce8a 100644
> > --- a/functions
> > +++ b/functions
> > @@ -4,6 +4,10 @@
> >  
> >  # width:
> >  
> > +grep -q initdebug && {
> > +    exec 2>/dev/tty9
> > +}
> > +
> >  STAT_COL=80
> >  if [[ ! -t 1 ]]; then
> >      USECOLOR=""
> 
> Apart from Kurt's comment:
> 
> Won't this cause errors to be omitted from the console? I'd much rather
> implement a full boot logging using bootlogd, but last time I tried, it
> was broken. Redirecting stderr away from the normal output seems
> unhelpful, and unecessary.

The intent was to redirect the errors to be redirected to tty9 -- when I
was debugging these scripts, syntax errors kept getting nuked by the
gettys and X starting up, so putting them on a tty that was not running
a getty seemed like the easiest solution.

> I'd much rather omit this in favor of a patch that adds proper boot
> logging, which is a feature we really need.

No problem.  The bashification-redux branch @
git://fnordovax.org/~victor/arch-initscripts has this as the last patch
to make it easy to drop.


-- 
Victor Lowther
LPIC2 UCP RHCE 


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux