Bug#584199: update-grub cannot find video.lst and locales
Jörg Sommer
joerg at alea.gnuu.de
Thu Jan 13 21:01:13 UTC 2011
found 584199 1.99~20110106-1
stop
Hello Colin,
Colin Watson hat am Wed 02. Jun, 14:05 (+0100) geschrieben:
> On Wed, Jun 02, 2010 at 09:32:01AM +0200, Marc Haber wrote:
> > sudo grub-mkconfig -o /boot/grub/grub.cfg
> > head: cannot open `/boot/grub/video.lst' for reading: No such file or directory
> > Generating grub.cfg ...
> > /usr/sbin/grub-probe: error: cannot stat `/boot/grub/locale'.
> > No path or device is specified.
> > Try `/usr/sbin/grub-probe --help' for more information.
> >
> > an grub-install seems to have fixed the issue, but I generally expect
> > that a package doesn't break on update unless a manual action is done.
>
> The next upload will avoid the locale error, which is the fatal one
> (#567211). There'll still be a complaint about video.lst but it's
> cosmetic.
It's no longer a cosmetic problem:
# update-grub
Generating grub.cfg ...
cat: /boot/grub/video.lst: Datei oder Verzeichnis nicht gefunden
Warning: update-grub_lib is deprecated, use grub-mkconfig_lib instead
Found linux image: /boot/vmlinuz-2.6.37.tracetest+
Found linux image: /boot/vmlinuz-2.6.37+
Found linux image: /boot/vmlinuz-2.6.37-rc8+tracetest+
Found linux image: /boot/vmlinuz-2.6.37-rc7+tracetest+
Found linux image: /boot/vmlinuz-2.6.37-rc6+
Found linux image: /boot/vmlinuz-2.6.37-rc5+
Found linux image: /boot/vmlinuz-2.6.37-rc4+
Found linux image: /boot/vmlinuz-2.6.37-rc2+
Found linux image: /boot/vmlinuz-2.6.37-rc1+
Found linux image: /boot/vmlinuz-2.6.36+
error: syntax error.
error: Incorrect command.
error: syntax error.
error: line no: 29
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
The problem is the empty body of the function load_video.
# sed -n 28,29p /boot/grub/grub.cfg.new
function load_video {
}
diff --git a/grub.d/00_header b/grub.d/00_header
index a688b32..fba12c7 100755
--- a/grub.d/00_header
+++ b/grub.d/00_header
@@ -75,25 +75,22 @@ function savedefault {
save_env saved_entry
fi
}
-
-function load_video {
EOF
+
if [ -n "${GRUB_VIDEO_BACKEND}" ]; then
- cat <<EOF
- insmod ${GRUB_VIDEO_BACKEND}
-EOF
-else
+ video_backend_modules=${GRUB_VIDEO_BACKEND}
+elif [ -s "${GRUB_PREFIX}/video.lst" ]; then
+ video_backend_modules=$(cat "${GRUB_PREFIX}/video.lst")
+fi
+if [ -n "${video_backend_modules:-}" ]; then
+ echo 'function load_video {'
# Insert all available backends; GRUB will use the most appropriate.
- for backend in $(cat "${GRUB_PREFIX}/video.lst"); do
- cat <<EOF
- insmod ${backend}
-EOF
+ for backend in $video_backend_modules; do
+ echo " insmod ${backend}"
done
+ echo '}'
fi
-cat <<EOF
-}
-
-EOF
+echo ''
serial=0;
gfxterm=0;
Regards, Jörg.
--
The social dynamics of the net are a direct consequence of the fact
that nobody has yet developed a Remote Strangulation Protocol.
(Larry Wall)
-------------- next part --------------
#
# 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 part_apple
insmod ext2
set root='(hd0,apple4)'
search --no-floppy --fs-uuid --set=root 2774fdb0-806e-4a36-b025-7815f19e7453
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
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_hurd ###
### END /etc/grub.d/10_hurd ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux, with Linux 2.6.37.tracetest+' --class debian --class gnu-linux --class gnu --class os {
insmod part_apple
insmod ext2
set root='(hd0,apple4)'
search --no-floppy --fs-uuid --set=root 2774fdb0-806e-4a36-b025-7815f19e7453
echo 'Loading Linux 2.6.37.tracetest+ ...'
linux /boot/vmlinuz-2.6.37.tracetest+ root=/dev/root ro nosmp radeon.agpmode=2
}
menuentry 'Debian GNU/Linux, with Linux 2.6.37.tracetest+ (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
insmod part_apple
insmod ext2
set root='(hd0,apple4)'
search --no-floppy --fs-uuid --set=root 2774fdb0-806e-4a36-b025-7815f19e7453
echo 'Loading Linux 2.6.37.tracetest+ ...'
linux /boot/vmlinuz-2.6.37.tracetest+ root=/dev/root ro single
}
menuentry 'Debian GNU/Linux, with Linux 2.6.37+' --class debian --class gnu-linux --class gnu --class os {
insmod part_apple
insmod ext2
set root='(hd0,apple4)'
search --no-floppy --fs-uuid --set=root 2774fdb0-806e-4a36-b025-7815f19e7453
echo 'Loading Linux 2.6.37+ ...'
linux /boot/vmlinuz-2.6.37+ root=/dev/root ro nosmp radeon.agpmode=2
}
menuentry 'Debian GNU/Linux, with Linux 2.6.37+ (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
insmod part_apple
insmod ext2
set root='(hd0,apple4)'
search --no-floppy --fs-uuid --set=root 2774fdb0-806e-4a36-b025-7815f19e7453
echo 'Loading Linux 2.6.37+ ...'
linux /boot/vmlinuz-2.6.37+ root=/dev/root ro single
}
menuentry 'Debian GNU/Linux, with Linux 2.6.37-rc8+tracetest+' --class debian --class gnu-linux --class gnu --class os {
insmod part_apple
insmod ext2
set root='(hd0,apple4)'
search --no-floppy --fs-uuid --set=root 2774fdb0-806e-4a36-b025-7815f19e7453
echo 'Loading Linux 2.6.37-rc8+tracetest+ ...'
linux /boot/vmlinuz-2.6.37-rc8+tracetest+ root=/dev/root ro nosmp radeon.agpmode=2
}
menuentry 'Debian GNU/Linux, with Linux 2.6.37-rc8+tracetest+ (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
insmod part_apple
insmod ext2
set root='(hd0,apple4)'
search --no-floppy --fs-uuid --set=root 2774fdb0-806e-4a36-b025-7815f19e7453
echo 'Loading Linux 2.6.37-rc8+tracetest+ ...'
linux /boot/vmlinuz-2.6.37-rc8+tracetest+ root=/dev/root ro single
}
menuentry 'Debian GNU/Linux, with Linux 2.6.37-rc7+tracetest+' --class debian --class gnu-linux --class gnu --class os {
insmod part_apple
insmod ext2
set root='(hd0,apple4)'
search --no-floppy --fs-uuid --set=root 2774fdb0-806e-4a36-b025-7815f19e7453
echo 'Loading Linux 2.6.37-rc7+tracetest+ ...'
linux /boot/vmlinuz-2.6.37-rc7+tracetest+ root=/dev/root ro nosmp radeon.agpmode=2
}
menuentry 'Debian GNU/Linux, with Linux 2.6.37-rc7+tracetest+ (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
insmod part_apple
insmod ext2
set root='(hd0,apple4)'
search --no-floppy --fs-uuid --set=root 2774fdb0-806e-4a36-b025-7815f19e7453
echo 'Loading Linux 2.6.37-rc7+tracetest+ ...'
linux /boot/vmlinuz-2.6.37-rc7+tracetest+ root=/dev/root ro single
}
menuentry 'Debian GNU/Linux, with Linux 2.6.37-rc6+' --class debian --class gnu-linux --class gnu --class os {
insmod part_apple
insmod ext2
set root='(hd0,apple4)'
search --no-floppy --fs-uuid --set=root 2774fdb0-806e-4a36-b025-7815f19e7453
echo 'Loading Linux 2.6.37-rc6+ ...'
linux /boot/vmlinuz-2.6.37-rc6+ root=/dev/root ro nosmp radeon.agpmode=2
}
menuentry 'Debian GNU/Linux, with Linux 2.6.37-rc6+ (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
insmod part_apple
insmod ext2
set root='(hd0,apple4)'
search --no-floppy --fs-uuid --set=root 2774fdb0-806e-4a36-b025-7815f19e7453
echo 'Loading Linux 2.6.37-rc6+ ...'
linux /boot/vmlinuz-2.6.37-rc6+ root=/dev/root ro single
}
menuentry 'Debian GNU/Linux, with Linux 2.6.37-rc5+' --class debian --class gnu-linux --class gnu --class os {
insmod part_apple
insmod ext2
set root='(hd0,apple4)'
search --no-floppy --fs-uuid --set=root 2774fdb0-806e-4a36-b025-7815f19e7453
echo 'Loading Linux 2.6.37-rc5+ ...'
linux /boot/vmlinuz-2.6.37-rc5+ root=/dev/root ro nosmp radeon.agpmode=2
}
menuentry 'Debian GNU/Linux, with Linux 2.6.37-rc5+ (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
insmod part_apple
insmod ext2
set root='(hd0,apple4)'
search --no-floppy --fs-uuid --set=root 2774fdb0-806e-4a36-b025-7815f19e7453
echo 'Loading Linux 2.6.37-rc5+ ...'
linux /boot/vmlinuz-2.6.37-rc5+ root=/dev/root ro single
}
menuentry 'Debian GNU/Linux, with Linux 2.6.37-rc4+' --class debian --class gnu-linux --class gnu --class os {
insmod part_apple
insmod ext2
set root='(hd0,apple4)'
search --no-floppy --fs-uuid --set=root 2774fdb0-806e-4a36-b025-7815f19e7453
echo 'Loading Linux 2.6.37-rc4+ ...'
linux /boot/vmlinuz-2.6.37-rc4+ root=/dev/root ro nosmp radeon.agpmode=2
}
menuentry 'Debian GNU/Linux, with Linux 2.6.37-rc4+ (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
insmod part_apple
insmod ext2
set root='(hd0,apple4)'
search --no-floppy --fs-uuid --set=root 2774fdb0-806e-4a36-b025-7815f19e7453
echo 'Loading Linux 2.6.37-rc4+ ...'
linux /boot/vmlinuz-2.6.37-rc4+ root=/dev/root ro single
}
menuentry 'Debian GNU/Linux, with Linux 2.6.37-rc2+' --class debian --class gnu-linux --class gnu --class os {
insmod part_apple
insmod ext2
set root='(hd0,apple4)'
search --no-floppy --fs-uuid --set=root 2774fdb0-806e-4a36-b025-7815f19e7453
echo 'Loading Linux 2.6.37-rc2+ ...'
linux /boot/vmlinuz-2.6.37-rc2+ root=/dev/root ro nosmp radeon.agpmode=2
}
menuentry 'Debian GNU/Linux, with Linux 2.6.37-rc2+ (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
insmod part_apple
insmod ext2
set root='(hd0,apple4)'
search --no-floppy --fs-uuid --set=root 2774fdb0-806e-4a36-b025-7815f19e7453
echo 'Loading Linux 2.6.37-rc2+ ...'
linux /boot/vmlinuz-2.6.37-rc2+ root=/dev/root ro single
}
menuentry 'Debian GNU/Linux, with Linux 2.6.37-rc1+' --class debian --class gnu-linux --class gnu --class os {
insmod part_apple
insmod ext2
set root='(hd0,apple4)'
search --no-floppy --fs-uuid --set=root 2774fdb0-806e-4a36-b025-7815f19e7453
echo 'Loading Linux 2.6.37-rc1+ ...'
linux /boot/vmlinuz-2.6.37-rc1+ root=/dev/root ro nosmp radeon.agpmode=2
}
menuentry 'Debian GNU/Linux, with Linux 2.6.37-rc1+ (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
insmod part_apple
insmod ext2
set root='(hd0,apple4)'
search --no-floppy --fs-uuid --set=root 2774fdb0-806e-4a36-b025-7815f19e7453
echo 'Loading Linux 2.6.37-rc1+ ...'
linux /boot/vmlinuz-2.6.37-rc1+ root=/dev/root ro single
}
menuentry 'Debian GNU/Linux, with Linux 2.6.36+' --class debian --class gnu-linux --class gnu --class os {
insmod part_apple
insmod ext2
set root='(hd0,apple4)'
search --no-floppy --fs-uuid --set=root 2774fdb0-806e-4a36-b025-7815f19e7453
echo 'Loading Linux 2.6.36+ ...'
linux /boot/vmlinuz-2.6.36+ root=/dev/root ro nosmp radeon.agpmode=2
}
menuentry 'Debian GNU/Linux, with Linux 2.6.36+ (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
insmod part_apple
insmod ext2
set root='(hd0,apple4)'
search --no-floppy --fs-uuid --set=root 2774fdb0-806e-4a36-b025-7815f19e7453
echo 'Loading Linux 2.6.36+ ...'
linux /boot/vmlinuz-2.6.36+ root=/dev/root ro single
}
### 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 ###
### 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 ###
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature http://en.wikipedia.org/wiki/OpenPGP
URL: <http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20110113/b35fa1cf/attachment-0001.pgp>
More information about the Pkg-grub-devel
mailing list