Bug 51032 - grubs idea of "relative" paths is confusing
grubs idea of "relative" paths is confusing
Status: CLOSED RAWHIDE
Product: Red Hat Public Beta
Classification: Retired
Component: grub (Show other bugs)
roswell
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jeremy Katz
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2001-08-06 14:56 EDT by Adrian Likins
Modified: 2008-05-01 11:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2001-08-06 18:41:00 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Adrian Likins 2001-08-06 14:56:07 EDT
Description of Problem:


How Reproducible:


Steps to Reproduce:
1. edit /boot/grub/grub.config to include a initrd, set its path to say
"/boot/fooo.img"

2. reboot, and it fails of course

Actual Results:

I initially used a "absolute" path, which is incorrect.

However, the use of relative paths in this case is a bit odd, in
my opinion. The comment in the default grub.conf of:

# NOTICE:  You have a /boot partition.  This means that
#          all kernel paths are relative to /boot/


Doesnt really help any. Since grub wants the path name in
the form "/initrd-foo.img". Which seems like an absolute
path to me (paths starting with / are generally absolute
paths to my brain...)

If you ignore that bit, the path still works out mentally
as /boot//initrd-foo.img, which while valid, is a bit strange. 

I suspect changing this odd behaviour in grub is painful,
so a better comment wouldnt hurt (with example?). Some info
in the grub interactive editing screen wouldnt hurt either.

Expected Results:


Additional Information:
Comment 1 Glen Foster 2001-08-06 18:02:29 EDT
Adding a more descriptive comment would be a good thing.
Comment 2 Glen Foster 2001-08-06 18:40:55 EDT
We (Red Hat) should try to fix this for the next release.
Comment 3 Jeremy Katz 2001-08-06 23:05:11 EDT
Ask and ye shall receive...  added an example stanza for both cases (having a
/boot and not having a /boot) commented out at the top with an initrd line.

Note You need to log in before you can comment on or make changes to this bug.