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