bug-grub
[Top][All Lists]
Advanced

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

address@hidden: Re: sed or grub-install bug?]


From: Jason Thomas
Subject: address@hidden: Re: sed or grub-install bug?]
Date: Wed, 19 Feb 2003 14:31:18 +1100
User-agent: Mutt/1.5.3i

here is the bug!

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

> Date: Tue, 18 Feb 2003 07:49:22 +0100
> From: Leo Laursen <address@hidden>
> To: Clint Adams <address@hidden>
> Subject: Re: sed or grub-install bug?
> 
> Den 17-02 2003 kl. 06:08:58 -0500, skrev Clint Adams:
> > > sudo grub-install --root-directory=/boot 
> > > /dev/ide/host2/bus0/target0/lun0/disc
> 
> > > sed: -e udtryk nr. 1, tegn 12: Ugyldig reference \1 p? 's'-kommandos 
> > > h?jreside
> > > sed: -e udtryk nr. 1, tegn 12: Ugyldig reference \1 p? 's'-kommandos 
> > > h?jreside
> > > Unrecognized ls output: Not found or not a block device.
> 
> > > (Invalid reference \1 on 's' command right side)
> 
> > Could you run sudo sh -x grub-install... and tell me what the sed
> > commands it's trying are?
> 
> Sure. Attached is grub.txt
> sudo sh -x grub-install --root-directory=/boot \
> /dev/ide/host2/bus0/target0/lun0/disc > grub.txt 2>&1
> 
> Leo
> -- 
> Do more than anyone expects, and pretty soon everyone will expect more.

> + prefix=/
> + exec_prefix=/
> + sbindir=//sbin
> + datadir=//usr/lib
> + PACKAGE=grub
> + VERSION=0.93
> + host_cpu=i386
> + host_os=linux-gnu
> + host_vendor=pc
> + pkgdatadir=//usr/lib/grub/i386-pc
> + grub_shell=//sbin/grub
> + log_file=/tmp/grub-install.log.1378
> + img_file=/tmp/grub-install.img.1378
> + rootdir=
> + grub_prefix=/boot/grub
> + install_device=
> + force_lba=
> + recheck=no
> + debug=no
> + test -x /bin/tempfile
> + mklog=/bin/tempfile --prefix=grub
> + mkimg=/bin/tempfile --prefix=grub
> ++ echo --root-directory=/boot
> ++ sed s/--root-directory=//
> + rootdir=/boot
> + test x '!=' x
> + install_device=/dev/ide/host2/bus0/target0/lun0/disc
> + test x/dev/ide/host2/bus0/target0/lun0/disc = x
> + test no = yes
> + bootdir=/boot/boot
> + grubdir=/boot/boot/grub
> + device_map=/boot/boot/grub/device.map
> + test -f //sbin/grub
> + :
> + test -f //usr/lib/grub/i386-pc/stage1
> + :
> + test -f //usr/lib/grub/i386-pc/stage2
> + :
> + test -d /boot/boot
> + test -d /boot/boot/grub
> + test no = yes
> + test -f /boot/boot/grub/device.map
> + :
> ++ sed -n '/^([fh]d[0-9]*)/s/\(^(.*)\).*/\1/p' /boot/boot/grub/device.map
> ++ sort
> ++ uniq -d
> ++ sed -n 1p
> + tmp=
> + test -n ''
> ++ convert /dev/ide/host2/bus0/target0/lun0/disc
> ++ test -e /dev/ide/host2/bus0/target0/lun0/disc
> ++ :
> +++ echo /dev/ide/host2/bus0/target0/lun0/disc
> +++ sed -e 's%\([sh]d[a-z]\)[0-9]*$%\1%' -e 's%\(fd[0-9]*\)$%\1%' -e 
> 's%/part[0-9]*$%/disc%' -e 's%\(c[0-7]d[0-9]*\).*$%\1%'
> ++ tmp_disk=/dev/ide/host2/bus0/target0/lun0/disc
> +++ echo /dev/ide/host2/bus0/target0/lun0/disc
> +++ sed -e 's%.*/[sh]d[a-z]\([0-9]*\)$%\1%' -e 's%.*/fd[0-9]*$%%' -e 
> 's%.*/floppy/[0-9]*$%%' -e 's%.*/\(disc\|part\([0-9]*\)\)$%\2%' -e 
> 's%.*c[0-7]d[0-9]*p*%%'
> ++ tmp_part=
> +++ grep -v '^#' /boot/boot/grub/device.map
> +++ grep '/dev/ide/host2/bus0/target0/lun0/disc *$'
> +++ sed 's%.*\(([hf]d[0-9][a-g0-9,]*)\).*%\1%'
> ++ tmp_drive=(hd0)
> ++ test 'x(hd0)' = x
> ++ test x '!=' x
> ++ echo '(hd0)'
> + install_drive=(hd0)
> + test 'x(hd0)' = x
> ++ find_device /boot
> +++ df /boot/
> +++ sed -n 's%.*\(/dev/[^     ]*\).*%\1%p'
> ++ tmp_fname=/dev/hde1
> ++ test -z /dev/hde1
> ++ test -L /dev/hde1
> +++ ls -al /dev/hde1
> +++ sed -n 's%.*-> %\1%p'
> sed: -e udtryk nr. 1, tegn 12: Ugyldig reference \1 p? 's'-kommandos h?jreside
> ++ tmp_new_fname=
> ++ test -z ''
> ++ echo 'Unrecognized ls output'
> ++ exit 1
> + root_device=Unrecognized ls output
> ++ find_device /boot/boot
> +++ df /boot/boot/
> +++ sed -n 's%.*\(/dev/[^     ]*\).*%\1%p'
> ++ tmp_fname=/dev/hde1
> ++ test -z /dev/hde1
> ++ test -L /dev/hde1
> +++ ls -al /dev/hde1
> +++ sed -n 's%.*-> %\1%p'
> sed: -e udtryk nr. 1, tegn 12: Ugyldig reference \1 p? 's'-kommandos h?jreside
> ++ tmp_new_fname=
> ++ test -z ''
> ++ echo 'Unrecognized ls output'
> ++ exit 1
> + bootdir_device=Unrecognized ls output
> + test 'xUnrecognized ls output' '!=' 'xUnrecognized ls output'
> ++ convert 'Unrecognized ls output'
> ++ test -e 'Unrecognized ls output'
> ++ echo 'Unrecognized ls output: Not found or not a block device.'
> Unrecognized ls output: Not found or not a block device.
> ++ exit 1
> + root_drive=
> + test x = x
> + exit 1


----- 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]