Incorrect paths in menu.lst with separate boot partition
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub (Ubuntu) |
Fix Released
|
Low
|
Colin Watson |
Bug Description
Binary package hint: grub
I've got an ext4 setup before any Ubuntu support for this, and hence needed to create a separate boot partition (since Grub didn't know how to boot from an ext4 partition).
This means that the correct paths to kernel etc.. in my menu.lst file begin with /<foo> rather than /boot/<foo>
update-grub sometimes wants to replace my menu.lst with one having /boot/ prefixing each filename.
Specifically, when I edit any non-default options in the menu.lst, such as adding options to the kernel command line, the next run of update-grub will prompt to ask if I want to replace the menu.lst file with that of the package maintainer.
Doing so doesn't actually delete my edited options, just re-writes the paths with /boot in front of them. I can then happily hand-edit the /boot part of the paths out, and update-grub seems happy enough with them - not prompting to replace the config file this time.
Related branches
Changed in grub: | |
assignee: | nobody → kamion |
status: | Triaged → Fix Committed |
Thank you for taking the time to report this bug and help to improve Ubuntu.
This is altogether unreproducible here. Using a separate partition for /boot is a common configuration (the system I'm typing from is set up this way), and update-grub has long supported it.
Is your /boot filesystem not mounted at /boot, or is it not listed in /etc/fstab? update-grub calls boot_device= $(find_ device "/boot") to determine whether /boot is a separate filesystem, and find_device is a function that looks up the mount in /etc/fstab. The only way I can see this failing is if one of the above two conditions aren't satisfied.