Bug#466598: grub-pc chokes on grub.cfg, hangs before menu
severity 466598 important thanks On Tue, Feb 19, 2008 at 04:23:39PM -0500, Barry Schatz wrote: Using the newest grub-pc package, I ran update-grub and then grub-install. Chainloading doesn't work by the way, because it doesn't create the chainload option in legacy grub. Was this the first time you installed grub-pc? Booting straight to grub2 results in Welcome to Grub and an unresponsive computer. In a previous release the if statements created by 00_header PROVIDED BY THE GRUB-PC PACKAGE were a problem, but removing those if statements doesn't avoid the problem any more. What do you see after Welcome to Grub when you use grub.cfg AS generated by update-grub WITHOUT MODIFIING IT? insmod png if background_image (hd0,5)/share/images/desktop-base/debian-blueish-wallpaper-640x480.png ; then This is wrong. Don't do it. Don't edit the file at all unless you understand the syntax. -- Robert Millan GPLv2 I know my rights; I want my phone call! DRM What use is a phone call… if you are unable to speak? (as seen on /.) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#466598: grub-pc chokes on grub.cfg, hangs before menu
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm sorry, I gave you attitude when I was frustrated. You didn't deserve that. I didn't edit grub.cfg, and this is not the first time I installed grub-pc. I've been using grub-pc for a few months. The edits I did do consisted of commenting out lines. I don't know the syntax, but I understand enough to figure out what a conditional block looks like. When the new version came out, I took a snapshot of the virtual machine I was testing on and held my breath. The problem seems to be I can't hold my breath long enough. If I wait a bit longer I get a menu. The menu is slow to the point of unresponsive, but I get a working system if I wait for it to pick the default. At this point I assume all of grub2 executes at ring 0 and the slowdown is due to virtualbox moving all of it to ring 1. I'll reinstall grub-pc on my tower and see if it's fixed. If so, I hope I didn't waste too much of your time. Despite my complaints, I like grub2 a lot and I'm really impressed with the progress it's made. Robert Millan wrote: severity 466598 important thanks On Tue, Feb 19, 2008 at 04:23:39PM -0500, Barry Schatz wrote: Using the newest grub-pc package, I ran update-grub and then grub-install. Chainloading doesn't work by the way, because it doesn't create the chainload option in legacy grub. Was this the first time you installed grub-pc? Booting straight to grub2 results in Welcome to Grub and an unresponsive computer. In a previous release the if statements created by 00_header PROVIDED BY THE GRUB-PC PACKAGE were a problem, but removing those if statements doesn't avoid the problem any more. What do you see after Welcome to Grub when you use grub.cfg AS generated by update-grub WITHOUT MODIFIING IT? insmod png if background_image (hd0,5)/share/images/desktop-base/debian-blueish-wallpaper-640x480.png ; then This is wrong. Don't do it. Don't edit the file at all unless you understand the syntax. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) iD8DBQFHvDmMtXr3a6NTXfoRAsxEAJ94gCnzL93dKn/oa4ZwbLxa9RoblwCdHD+9 VBM9uU9tyzWhVfLY8gV5i6o= =gmE2 -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#466598: grub-pc chokes on grub.cfg, hangs before menu
Hi Barry, On Wed, Feb 20, 2008 at 09:30:36AM -0500, Barry Schatz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm sorry, I gave you attitude when I was frustrated. You didn't deserve that. Apologise accepted. I didn't edit grub.cfg, and this is not the first time I installed grub-pc. I've been using grub-pc for a few months. The edits I did do consisted of commenting out lines. I don't know the syntax, but I understand enough to figure out what a conditional block looks like. It is easy to make assumptions but the syntax is actually fragile. While code generated by update-grub is well-tested and known to work, some minor details can break stuff unexpectedly. So please, generate grub.cfg with update-grub and try again. There _was_ a bug in the parser in an older release, but if you hit that all you have to do is grub-install the latest version; no need to hand-edit grub.cfg. If I wait a bit longer I get a menu. The menu is slow to the point of unresponsive, but I get a working system if I wait for it to pick the default. So it works then? At this point I assume all of grub2 executes at ring 0 and the slowdown is due to virtualbox moving all of it to ring 1. Could be. There's really not much GRUB can do to slow down your system. Either it's using the CPU (fast) or calls the BIOS (slow or fast, who knows?). -- Robert Millan GPLv2 I know my rights; I want my phone call! DRM What use is a phone call… if you are unable to speak? (as seen on /.) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#466598: grub-pc chokes on grub.cfg, hangs before menu
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Package: grub-pc Version: 1.96+20080216-1 Severity: critical Justification: breaks the whole system Using the newest grub-pc package, I ran update-grub and then grub-install. Chainloading doesn't work by the way, because it doesn't create the chainload option in legacy grub. Booting straight to grub2 results in Welcome to Grub and an unresponsive computer. In a previous release the if statements created by 00_header PROVIDED BY THE GRUB-PC PACKAGE were a problem, but removing those if statements doesn't avoid the problem any more. I have had this problem on two computers, one a desktop and one a virtual machine. - -- Package-specific info: *** BEGIN /dev/hda1 / ext3 rw,errors=remount-ro,data=ordered 0 0 /dev/hda1 /dev/.static/dev ext3 rw,errors=remount-ro,data=ordered 0 0 /dev/hda9 /home ext3 rw,data=ordered 0 0 /dev/hda8 /tmp ext3 rw,data=ordered 0 0 /dev/hda5 /usr ext3 rw,data=ordered 0 0 /dev/hda6 /var ext3 rw,data=ordered 0 0 *** END *** BEGIN /boot/grub/device.map (hd0) /dev/hda *** END /boot/grub/device.map *** BEGIN /boot/grub/grub.cfg # # DO NOT EDIT THIS FILE # # It is automatically generated by /usr/sbin/update-grub using templates # from /etc/grub.d and settings from /etc/default/grub # ### BEGIN /etc/grub.d/00_header ### set default=0 set timeout=5 set root=(hd0,1) if font (hd0,5)/share/grub/unicode.pff ; then set gfxmode=640x480 insmod gfxterm insmod vbe terminal gfxterm fi ### END /etc/grub.d/00_header ### ### BEGIN /etc/grub.d/05_debian_theme ### insmod png if background_image (hd0,5)/share/images/desktop-base/debian-blueish-wallpaper-640x480.png ; then set color_normal=black/black set color_highlight=magenta/black else set menu_color_normal=cyan/blue set menu_color_highlight=white/blue fi ### 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, linux 2.6.24-1-686 { linux (hd0,1)/boot/vmlinuz-2.6.24-1-686 root=/dev/hda1 ro initrd (hd0,1)/boot/initrd.img-2.6.24-1-686 } menuentry Debian GNU/Linux, linux 2.6.24-1-686 (single-user mode) { linux (hd0,1)/boot/vmlinuz-2.6.24-1-686 root=/dev/hda1 ro single initrd (hd0,1)/boot/initrd.img-2.6.24-1-686 } ### END /etc/grub.d/10_linux ### *** END /boot/grub/grub.cfg - -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.24-1-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/bash Versions of packages grub-pc depends on: ii base-files4.0.2 Debian base system miscellaneous f ii debconf [debconf-2.0] 1.5.19 Debian configuration management sy ii libc6 2.7-8 GNU C Library: Shared libraries ii liblzo1 1.08-3 data compression library (old vers ii libncurses5 5.6+20080203-1 Shared libraries for terminal hand grub-pc recommends no packages. - -- debconf information: * grub-pc/linux_cmdline: * grub-pc/chainload_from_menu.lst: true -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) iD8DBQFHu0jbtXr3a6NTXfoRAvdrAJ9nSK+dvDj3nVEItAjmuwmfTT8F3wCfb5hm g2v1qYqymSRx1UkXCp5c3T4= =/G2i -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]