Package: grub<br>Version: 0.97-27<br>Severity: important<br><br>*** Please type your report below this line ***<br><br>update-grub, while parsing /etc/fstab as I guess, does not take into account <br>value of 3rd column that may be "ignore" and in such case the entry should be <br>
ignored by grub like commented out are. In my case:<br><br>$ cat /etc/fstab<br># /etc/fstab: static file system information.<br>#<br># <file system> <mount point> <type> <options> <dump> <pass><br>
proc /proc proc defaults 0 0<br>/dev/sda6 / ext3 defaults,errors=remount-ro 0 1<br>/dev/sda1 /boot ignore defaults,ro 0 1<br>
/dev/sda5 none swap sw 0 0<br>etc...<br><br>This is former state of my fstab. <br>On each linux image auto-update (really there were just 2.6.18-4 -5 & -6 <br>numbers, but don't-know-why kernel was updated by APT at least twice more <br>
times during last half of year, and each time update-grub broke system <br>booting) update-grub rewrote menu.lst and replaced /boot/vmlinuz* with <br>/vmlinuz* and same for initrd-*s, so as, I guess, grub had found entry for <br>
/boot in fstab and thank that /boot directory is on separate partition.<br>When I added comment sharp # before this "ignore" entry, bug has gone.<br><br>I think this bug is close to that one: <br>"Debian Bug report logs - #435708 update-grub fails to recognize mount<br>
points in /etc/fstab if the entry contains a trailing slash"<br><br>This bug also makes grub to generate wrong # groot "automagical" <br>property on creating new menu.lst (if there was no any) - update-grub<br>
produced # groot=(hd0,0) in my case instead of (0,5).<br><br><br>Other menu.lst parsing/updating errors are:<br>update-grub uncomment some "automagical" options, like <br>## altoptions=(single-user mode) single <br>
becomes<br># altoptions=(single-user mode) single<br>and "single" copies of auto-kernel-list entries are generated.<br><br>## memtest86=true<br>also becomes uncommented<br># memtest86=true<br>but nothing more happens, as I saw.<br>
<br>In menu entries:<br><br>title Debian GNU/Linux, kernel 2.6.18-6-486<br>root (hd0,5)<br>kernel /boot/vmlinuz-2.6.18-6-486 root=/dev/sda6 ro<br>initrd /boot/initrd.img-2.6.18-6-486<br>
#savedefault<br><br>savedefault becomes uncommented.<br><br>So as grub is about to be replaced with grub2 (?), I think <br>these "bits" are to be ignored, but bugs with /etc/fstab <br>are serious, as do system unexpectedly unbootable.<br>
<br><br>-- System Information:<br>Debian Release: 4.0<br> APT prefers stable<br> APT policy: (500, 'stable')<br>Architecture: i386 (i686)<br>Shell: /bin/sh linked to /bin/bash<br>Kernel: Linux 2.6.18-6-486<br>Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)<br>
<br>Versions of packages grub depends on:<br>ii libc6 2.3.6.ds1-13etch4 GNU C Library: Shared libraries<br>ii libncurses5 5.5-5 Shared libraries for terminal hand<br><br>grub recommends no packages.<br>
<br>-- no debconf information<br><br>