bugGNU GRUB - Bugs: bug #9628, convert() says (hd0,)

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #9628: convert() says (hd0,)

Submitted by:  None
Submitted on:  Tue 13 Jul 2004 11:45:29 AM UTC  
 
Category: Disk & PartitionSeverity: Major
Priority: 5 - NormalItem Group: Software Error
Status: FixedPrivacy: Public
Assigned to: Yoshinori K. Okuji <okuji>Originator Name: 
Originator Email: -unavailable-Open/Closed: Closed
Release: 0.95Release: None
Reproducibility: Every TimePlanned Release: None

Fri 23 Feb 2007 07:55:56 AM UTC, comment #2:

I want to reopen this bug for grub-0.97.

I got the same error as in the original submission using this command-line:

grub-install /dev/cciss/c0d0

I've included a patch to fix this problem. The patch was done using grub-install 1.49 from here: http://cvs.savannah.gnu.org/viewcvs/checkout/grub/util/grub-install.in?rev=1.49&root=grub

Best regards,

Carsten

(file #12029)

Carsten Dumke <cdumke>
Fri 16 Jul 2004 11:37:38 AM UTC, comment #1:

I fixed it in the CVS.

Yoshinori K. Okuji <okuji>
Project AdministratorIn charge of this item.
Tue 13 Jul 2004 11:45:29 AM UTC, original submission:

The convert() function inside grub-install, if its argument
is e.g. /dev/hda, prints a warning:
expr: non-numeric argument
and returns the answer "(hd0,)"
In 0.94 it correctly returned "(hd0)" without any warning.

The long sed commands which calculate tmp_disk and tmp_part
inside convert() have introduced a new line with d[0-9]*p...
This one seems to be buggy. Currently
tmp_part=.....
-e 's%.d[0-9]p*%%'...
I'm not sure but I think this should be
tmp_part=.....
-e 's%.d[0-9]p[0-9]*%%'...

Anonymous

 

Attached Files
file #12029:  grub-install-fix-tmp_part.diff added by cdumke (440B - application/octet-stream - patch for this bug)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by cdumke (Updated the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 23 Feb 2007 07:55:56 AM UTCcdumkeAttached File-=>Added grub-install-fix-tmp_part.diff, #12029
    Fri 16 Jul 2004 11:37:38 AM UTCokujiStatusNone=>Fixed
      Assigned toNone=>okuji
      Open/ClosedOpen=>Closed
      Planned Release=>0.96
    Tue 13 Jul 2004 12:13:52 PM UTCegmontCarbon-Copy-=>Added egmont

    Back to the top


    Powered by Savane 3.1-cleanup1