Activity log for bug #275365

Date Who What changed Old value New value Message
2008-09-28 04:40:05 WarrenTurkal bug added bug
2008-09-28 06:23:18 WarrenTurkal description Binary package hint: grub The update-grub script always uses the absolute path for the kernel and initrd filenames. This results in invalid pathnames for the kernel and initrds when /boot is on a separate volume than the / volume. I am working on a patch, but the code in update-grub is a little crazy. I would like to have this fix in for Intrepid since my Dell 1420 laptop shipped with this partition configuration, and this problem could bite all the folks trying to upgrade to the Intrepid. Binary package hint: grub I have a Dell 1420 laptop that shipped with an earlier version of Ubuntu. I upgraded it to Intrepid and noticed (in a failure to reboot) that the grub-update script was not creating my boot entries properly. After investigation, I found that update-grub uses read to look at the lines in /etc/fstab. This works fine until the last line is either the /boot volume (and maybe / volume also) and isn't trailed by a newline. The read command will not read the line without a newline. The last line of my /etc/fstab defines my /boot volume and is not trailed by a newline. That line never gets read, and the update-grub script doesn't know about my /boot volume. This causes the script to have "/boot" on all the kernels and initrds in the menu.lst file even though /boot. Here's an example of a command not working: echo -n '0 1 2 3' | read A && echo $A This command outputs nothing in either bash or dash. I will submit a patch to change the read to awk as soon as I can. I would like to have this fix in for Intrepid since my Dell 1420 laptop shipped with this partition configuration, and this problem could bite all the folks trying with Dell 1420s when upgrading to Intrepid.
2008-09-28 06:23:18 WarrenTurkal title update-grub generates garbage when /boot is on a separate partition from root update-grub skips last line in /etc/fstab when finding boot device
2008-09-29 08:24:53 WarrenTurkal bug added attachment 'grub-boot-volume-detection.diff' (use awk instead of read to parse /etc/fstab)
2008-10-01 22:03:20 Steve Langasek grub: status New Triaged
2008-10-01 22:03:20 Steve Langasek grub: statusexplanation
2008-10-01 22:07:28 Steve Langasek grub: status Triaged Fix Committed
2008-10-01 22:07:28 Steve Langasek grub: statusexplanation Committed to bzr.
2008-10-09 02:20:06 Launchpad Janitor grub: status Fix Committed Fix Released
2009-12-05 07:19:26 Launchpad Janitor branch linked lp:ubuntu/grub