[Bug 243783] Re: update-grub fails to detect correct kernel_dir
dino99
243783 at bugs.launchpad.net
Fri Jan 2 15:04:37 UTC 2015
outdated report & no more maintained distro; please send a new one if
that issue still exist (using ubuntu-bug)
** Changed in: grub (Ubuntu)
Status: New => Invalid
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub in Ubuntu.
https://bugs.launchpad.net/bugs/243783
Title:
update-grub fails to detect correct kernel_dir
Status in grub package in Ubuntu:
Invalid
Bug description:
Binary package hint: grub
in a setup where a boot partition is shared among different unices,
all having their own subdirectory there (let's say the boot partition
is /dev/sda3 mounted on /mnt/boot; in that case ubuntu hardy's /boot
is a symlink to /mnt/boot/ubuntu-stable), update-grub fails to detect
the kernel_dir correctly.
as a result, the /mnt/boot/ubuntu-stable/grub/menu.lst (which is
intended to be read via configfile by a distribution chooser grub
installation on /mnt/boot/grub) claims that the kernel resides in
(hd0,2)/boot/ instead of (hd0,2)/ubuntu-stable/.
the desired behavior would be to resolve all symlinks in the path of
the kernel image found as /boot/vmlinuz-x resulting in /mnt/boot
/ubuntu-stable/vmlinuz-x, then determine the partition it resides on
(this is done correctly in my case) and find that kernel's path
relative to the mount point, which will be the abolute path on (hd0,2)
where grub has to look for the kernel. (it goes without saying that
the same is true for initrd images)
the issue can be temporarily mitigated by inserting a "kernel_dir
=/ubuntu-stable" in line 1283 of /usr/sbin/update-grub, but that's a
rather brutal workaround.
observed on ubuntu hardy with grub 0.97-29ubuntu21.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub/+bug/243783/+subscriptions
More information about the foundations-bugs
mailing list