Bug#633349: grub-common: 30_os-prober is generating a syntactically invalid entry for a recently deleted kernel
Joe Pfeiffer
joseph at pfeifferfamily.net
Sat Jul 9 14:43:48 UTC 2011
Package: grub-common
Version: 1.99-6
Severity: normal
This morning I purged linux-image-2.6.32.3.686. update-grub now reports
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.39-2-686-pae
Found initrd image: /boot/initrd.img-2.6.39-2-686-pae
Found linux image: /boot/vmlinuz-2.6.38-2-686
Found initrd image: /boot/initrd.img-2.6.38-2-686
Found Debian GNU/Linux (wheezy/sid) on /dev/sda1
Found Debian GNU/Linux (wheezy/sid) on /dev/sdb1
error: syntax error.
error: Incorrect command.
error: syntax error.
error: line no: 198
Syntax errors are detected in generated GRUB config file.
Ensure that there are no errors in /etc/default/grub
and /etc/grub.d/* files or please file a bug report with
/boot/grub/grub.cfg.new file attached.
done
Line 198 is an entry for 2.6.32-5 which contains lots of nonprinting
characters; /boot/grub/grub.cfg.new is at the end of this report
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (700, 'testing'), (650, 'stable'), (600, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.38-2-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages grub-common depends on:
ii gettext-base 0.18.1.1-3 GNU Internationalization utilities
ii libc6 2.13-7 Embedded GNU C Library: Shared lib
ii libdevmapper1.02.1 2:1.02.63-3 The Linux Kernel Device Mapper use
ii libfreetype6 2.4.4-2 FreeType 2 font engine, shared lib
ii libfuse2 2.8.5-3 Filesystem in Userspace (library)
ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime
Versions of packages grub-common recommends:
ii os-prober 1.47 utility to detect other OSes on a
Versions of packages grub-common suggests:
pn desktop-base <none> (no description available)
pn grub-emu <none> (no description available)
pn multiboot-doc <none> (no description available)
pn xorriso <none> (no description available)
-- no debconf information
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}
insmod raid
insmod mdraid09
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(mduuid/a5bd68a4e67324e56edd6e1bf730ca6e)'
search --no-floppy --fs-uuid --set=root 6b5622a3-e914-4152-8320-74a29c498ac7
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
insmod raid
insmod mdraid09
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(mduuid/a5bd68a4e67324e56edd6e1bf730ca6e)'
search --no-floppy --fs-uuid --set=root 6b5622a3-e914-4152-8320-74a29c498ac7
set locale_dir=($root)/boot/grub/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux, with Linux 2.6.39-2-686-pae' --class debian --class gnu-linux --class gnu --class os {
insmod gzio
insmod raid
insmod mdraid09
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(mduuid/a5bd68a4e67324e56edd6e1bf730ca6e)'
search --no-floppy --fs-uuid --set=root 6b5622a3-e914-4152-8320-74a29c498ac7
echo 'Loading Linux 2.6.39-2-686-pae ...'
linux /boot/vmlinuz-2.6.39-2-686-pae root=UUID=6b5622a3-e914-4152-8320-74a29c498ac7 ro quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.39-2-686-pae
}
menuentry 'Debian GNU/Linux, with Linux 2.6.39-2-686-pae (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
insmod gzio
insmod raid
insmod mdraid09
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(mduuid/a5bd68a4e67324e56edd6e1bf730ca6e)'
search --no-floppy --fs-uuid --set=root 6b5622a3-e914-4152-8320-74a29c498ac7
echo 'Loading Linux 2.6.39-2-686-pae ...'
linux /boot/vmlinuz-2.6.39-2-686-pae root=UUID=6b5622a3-e914-4152-8320-74a29c498ac7 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.39-2-686-pae
}
menuentry 'Debian GNU/Linux, with Linux 2.6.38-2-686' --class debian --class gnu-linux --class gnu --class os {
insmod gzio
insmod raid
insmod mdraid09
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(mduuid/a5bd68a4e67324e56edd6e1bf730ca6e)'
search --no-floppy --fs-uuid --set=root 6b5622a3-e914-4152-8320-74a29c498ac7
echo 'Loading Linux 2.6.38-2-686 ...'
linux /boot/vmlinuz-2.6.38-2-686 root=UUID=6b5622a3-e914-4152-8320-74a29c498ac7 ro quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.38-2-686
}
menuentry 'Debian GNU/Linux, with Linux 2.6.38-2-686 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
insmod gzio
insmod raid
insmod mdraid09
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(mduuid/a5bd68a4e67324e56edd6e1bf730ca6e)'
search --no-floppy --fs-uuid --set=root 6b5622a3-e914-4152-8320-74a29c498ac7
echo 'Loading Linux 2.6.38-2-686 ...'
linux /boot/vmlinuz-2.6.38-2-686 root=UUID=6b5622a3-e914-4152-8320-74a29c498ac7 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.38-2-686
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Debian GNU/Linux, with Linux 2.6.39-2-686-pae (on /dev/sda1)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 6b5622a3-e914-4152-8320-74a29c498ac7
linux /boot/vmlinuz-2.6.39-2-686-pae root=UUID=6b5622a3-e914-4152-8320-74a29c498ac7 ro quiet
initrd /boot/initrd.img-2.6.39-2-686-pae
}
menuentry "Debian GNU/Linux, with Linux 2.6.39-2-686-pae (recovery mode) (on /dev/sda1)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 6b5622a3-e914-4152-8320-74a29c498ac7
linux /boot/vmlinuz-2.6.39-2-686-pae root=UUID=6b5622a3-e914-4152-8320-74a29c498ac7 ro single
initrd /boot/initrd.img-2.6.39-2-686-pae
}
menuentry "Debian GNU/Linux, with Linux 2.6.38-2-686 (on /dev/sda1)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 6b5622a3-e914-4152-8320-74a29c498ac7
linux /boot/vmlinuz-2.6.38-2-686 root=UUID=6b5622a3-e914-4152-8320-74a29c498ac7 ro quiet
initrd /boot/initrd.img-2.6.38-2-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.38-2-686 (recovery mode) (on /dev/sda1)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 6b5622a3-e914-4152-8320-74a29c498ac7
linux /boot/vmlinuz-2.6.38-2-686 root=UUID=6b5622a3-e914-4152-8320-74a29c498ac7 ro single
initrd /boot/initrd.img-2.6.38-2-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.39-2-686-pae (on /dev/sdb1)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd1,msdos1)'
search --no-floppy --fs-uuid --set=root 6b5622a3-e914-4152-8320-74a29c498ac7
linux /boot/vmlinuz-2.6.39-2-686-pae root=UUID=6b5622a3-e914-4152-8320-74a29c498ac7 ro quiet
initrd /boot/initrd.img-2.6.39-2-686-pae
}
menuentry "Debian GNU/Linux, with Linux 2.6.39-2-686-pae (recovery mode) (on /dev/sdb1)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd1,msdos1)'
search --no-floppy --fs-uuid --set=root 6b5622a3-e914-4152-8320-74a29c498ac7
linux /boot/vmlinuz-2.6.39-2-686-pae root=UUID=6b5622a3-e914-4152-8320-74a29c498ac7 ro single
initrd /boot/initrd.img-2.6.39-2-686-pae
}
menuentry "Debian GNU/Linux, with Linux 2.6.38-2-686 (on /dev/sdb1)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd1,msdos1)'
search --no-floppy --fs-uuid --set=root 6b5622a3-e914-4152-8320-74a29c498ac7
linux /boot/vmlinuz-2.6.38-2-686 root=UUID=6b5622a3-e914-4152-8320-74a29c498ac7 ro quiet
initrd /boot/initrd.img-2.6.38-2-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.38-2-686 (recovery mode) (on /dev/sdb1)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd1,msdos1)'
search --no-floppy --fs-uuid --set=root 6b5622a3-e914-4152-8320-74a29c498ac7
linux /boot/vmlinuz-2.6.38-2-686 root=UUID=6b5622a3-e914-4152-8320-74a29c498ac7 ro single
initrd /boot/initrd.img-2.6.38-2-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.32-5-686 (on /dev/sdb1)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd1,msdos1)'
search --no-floppy --fs-uuid --set=root 6b5622a3-e914-4152-8320-74a29c498ac7
linux /boot/vmlinuz-2.6.32-5-686 root=UUID=6b5622a3-e914-4152-8J ²§JçW&{¢qwç¢ìùV<â¡}³Ãíµ¥c¹ÞúáÅ%ö·ëÀA¸âÀâ=(ªÍÙæ&hâ§ÈxZrîùæà æPCsJ¿ØæcHͦðA¨,;çFhêçFwmV2À9wèYá3£pxeÝÜÈú¹
ÓMιÃoM®K ¾M8)|vÝÜÁâá°³nî°ú¹#SmN,|Ö%ª;¢þ·'Q&ýöuxÙ÷Ypè!ð ¿åI*u3uØ%jªKÖ¹
ÎK8B
½HKìáιýÎUÆ+ι5ÌU©a2ôRræ#Y`=L+ìEA¢[7»>¥`°ë£lêö ýP7·sY7J8¬÷B㺨úsîÈ¡pÈTbhN¿WÒO
}
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
More information about the Pkg-grub-devel
mailing list