bug-grub
[Top][All Lists]
Advanced

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

address@hidden: Re: address@hidden: [Bug-grub] Re: address@hidden: Re: s


From: Jason Thomas
Subject: address@hidden: Re: address@hidden: [Bug-grub] Re: address@hidden: Re: sed or grub-install bug?]]]
Date: Thu, 20 Feb 2003 09:51:21 +1100
User-agent: Mutt/1.5.3i

Here is the response:

----- Forwarded message from Leo Laursen <address@hidden> -----

> Date: Wed, 19 Feb 2003 07:43:56 +0100
> From: Leo Laursen <address@hidden>
> To: Jason Thomas <address@hidden>
> Subject: Re: address@hidden: [Bug-grub] Re: address@hidden: Re: sed or 
> grub-install bug?]]
> 
> Den 19-02 2003 kl. 04:32:02 +1100, skrev Jason Thomas:
> > > Ok. Does this patch fix the bug?
> 
> > > Index: util/grub-install.in
> > > ===================================================================
> > > RCS file: /cvsroot/grub/grub/util/grub-install.in,v
> > > retrieving revision 1.37
> > > diff -u -r1.37 grub-install.in
> > > --- util/grub-install.in        20 May 2002 11:48:03 -0000      1.37
> > > +++ util/grub-install.in        19 Feb 2003 05:01:45 -0000
> > > @@ -193,7 +193,7 @@
> 
> > >      # Resolve symlinks
> > >      while test -L $tmp_fname; do
> > > -       tmp_new_fname=`ls -al $tmp_fname | sed -n 's%.*-> %\1%p'`
> > > +       tmp_new_fname=`ls -al $tmp_fname | sed -n 's%.*-> \(.*\)%\1%p'`
> > >         if test -z "$tmp_new_fname"; then
> > >             echo "Unrecognized ls output" 2>&1
> > >             exit 1
> 
> Yes if fixes the problem.
> Clint Adams sugested this:
> -       tmp_new_fname=`ls -al $tmp_fname | sed -n 's%.*-> %\1%p'`
> +       tmp_new_fname=`readlink $tmp_fname`
> 
> which works as well.
> 
> Thanks
> Leo
> -- 
> Rules for Academic Deans:
>       (1)  HIDE!!!!
>       (2)  If they find you, LIE!!!!
>               -- Father Damian C. Fandal

----- End forwarded message -----

-- 
Jason Thomas                           Phone:  +61 2 6257 7111
Unix System Administrator              Fax:    +61 2 6257 7311
tSA Consulting Group Pty. Ltd.         Mobile: 0418 29 66 81
1 Hall Street Lyneham ACT 2602         http://www.topic.com.au/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]