Bug#435708: update-grub fails to recognize mount points in /etc/fstab if the entry contains a trailing slash

Spiro Trikaliotis an-debian-bug at spiro.trikaliotis.net
Thu Aug 2 18:44:12 UTC 2007


Package: grub
Version: 0.97-27
Severity: important
Tags: patch

Hello,

on my machine, I have a separate /boot partition. I found that
update-grub did not recognize this fact, but wrote the complete path
/boot/vmlinuz... into the /boot/grub/menu.lst file.  Because of this,
the system did not boot after a call to update-grub.

I checked /sbin/update-grub. I found out that update-grub indeed looks
for mount points; nevertheless, it did not recognize it in my case. The
reason was found rather quickly: My /etc/fstab contained a line like

/dev/sda7       /boot/  ...

If I remove the trailing shlash from the mount point and make the line
look like follows, update-grub happily recognizes the mount point and
does not behave erroneously anymore:

/dev/sda7       /boot  ...



More information about the Pkg-grub-devel mailing list