Bug#542164: grub-common: please allow override of make_system_path_relative_to_its_root's output

Marc Haber mh+debian-bugs at zugschlus.de
Tue Aug 18 06:39:54 UTC 2009

Package: grub-common
Version: 1.96+20090808-1
Severity: wishlist


I have a system which has /boot on /, which is an encrypted LV. Since
the system cannot boot from there, /boot is unisoned to an USB stick,
where /boot's contents is directly in its root so that the stick can
be mounted directly as /boot should that be desired:

$ ls -al /boot/grub/grub.cfg
-r--r--r-- 1 root root 2,0K 17. Aug 23:46 /boot/grub/grub.cfg
$ ls -al /media/disk-1/grub/grub.cfg
-r--r--r-- 1 root root 2,0K 17. Aug 23:47 /media/disk-1/grub/grub.cfg
$ < /proc/mounts grep disk-1
/dev/sdb4 /media/disk-1 ext3 rw,nosuid,nodev,relatime,errors=continue,data=ordered 0 0

In this setup, make_system_path_relative_to_its_root of course prints
/boot, which causes grub.cfg to refer to the kernels as
/boot/vmlinux-foo, which is not true at run time.

grub's scripts of course cannot know about this, so it should be a
possibility to override make_system_path_relative_to_its_root to treat
/boot as if it were actually a mounted file system. I would prefer
having a config file, which could for example contain a line as
/boot /
over having to modify the actual function, which is not even a conffile.


More information about the Pkg-grub-devel mailing list