[arch-general] [PATCH 44/48] Save error messages to /dev/tty9.
Victor Lowther
victor.lowther at gmail.com
Sat Jul 17 10:09:46 EDT 2010
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
More information about the arch-general
mailing list