bugGNU GRUB - Bugs: bug #28118, [patch] 10_linux uses wrong path...

 
 

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

bug #28118: [patch] 10_linux uses wrong path when /boot is a separate partition

Submitter:  Yaacov Akiba Slama <yaslama>
Submitted:  Sat 28 Nov 2009 08:48:12 PM UTC
   
 
Category:  Configuration Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  Fixed Privacy:  Public
Assigned to:  None Originator Name:  Yaacov Akiba Slama
Open/Closed:  Closed Release:  Bazaar - trunk
Release:  Reproducibility:  Every Time
Planned Release:  None

Sat 28 Nov 2009 09:33:19 PM UTC, comment #1: 

Sorry,

I attached the wrong patch.

I am attaching the correct one.

(file #19147)

Yaacov Akiba Slama <yaslama>
Sat 28 Nov 2009 08:48:12 PM UTC, original submission:  

10_linux calls make_system_path_relative_to_its_root with the directory of the vmlinuz file (dirname) instead of the filename itself.

The problem is that grub-mkrelpath (which is called by make_system_path_relative_to_its_root to do the real work) doesn't work with the boot directory itself (and my system doesn't boot without the fix):

#/usr/bin/grub-mkrelpath /boot
/boot

but

#/usr/bin/grub-mkrelpath /boot/vmlinuz-2.6.31-1-amd64
/vmlinuz-2.6.31-1-amd64

So 10-linux needs to be changed to use the full kernel filename instead of its dirname when calling "make_system_path_relative_to_its_root"

A small patch is attached.

Yaacov Akiba Slama <yaslama>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #19147:  patch2 added by yaslama (596B - application/octet-stream)
file #19146:  patch added by yaslama (559B - application/octet-stream - Patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by phcoder (Updated the item)
  • -email is unavailable- added by yaslama (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-12-06 phcoder Open/ClosedOpen Closed
    2009-12-06 phcoder StatusNone Fixed
    2009-11-28 yaslama Attached File- Added patch2, #19147
    2009-11-28 yaslama Attached File- Added patch, #19146

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code