Your message dated Sat, 29 Aug 2009 18:22:40 +0200
with message-id <[email protected]>
and subject line Re: Bug#544157: [grub-pc] shouldn't try to upgrade from GRUB 1 
to GRUB 2 again if it did it before
has caused the Debian Bug report #544157,
regarding [grub-pc] shouldn't try to upgrade from GRUB 1 to GRUB 2 again if it 
did it before
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
544157: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=544157
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: grub-pc
Version: 1.96+20090317-1
Severity: normal

--- Please enter the report below this line. ---
grub-pc shouldn't try to update from GRUB 1 menu.lst again once it did it 
before. Instead it should move /boot/grub/menu.lst out of the way and use 
the pre-existing grub 2 configuration on upgrades.

As grub-pc from sid rendered my system unbootable today, the downgrade to 
grub-pc from squeeze broke my linux command line options badly cause it 
didn't take the right ones from GRUB 2 configuration, but the outdated 
wrong once from GRUB 1 menu.lst.

I now moved /boot/grub/menu.lst out of the way manually, but a Debian 
stable user shouldn't have to do this manually. Thus after upgrading the 
configuration from GRUB 1 to GRUB 2 manually the post-install script should 
just rename menu.lst to something else, so its not used again.


--- System information. ---
Architecture: i386
Kernel:       Linux 2.6.31-rc7-tp42-toi-3.0.1-04741-g57e61c0

Debian Release: squeeze/sid
  500 stable          x2go.obviously-nice.de 
  500 stable          security.debian.org 
  500 stable          debian.n-ix.net 
  450 testing         security.debian.org 
  450 testing         debian.n-ix.net 
  400 unstable        www.debian-multimedia.org 
  400 unstable        ftp.de.debian.org 
  101 experimental    ftp.de.debian.org 

--- Package information. ---
Depends                   (Version) | Installed
===================================-+-====================
libc6                      (>= 2.3) | 2.9-12
debconf                   (>= 0.5)  | 1.5.26
 OR debconf-2.0                     | 
grub-common     (= 1.96+20090317-1) | 1.96+20090317-1


Package's Recommends field is empty.

Suggests          (Version) | Installed
===========================-+-===========
desktop-base     (>= 4.0.6) | 5.0.5
os-prober                   | 



--- Output from package bug script ---

*********************** BEGIN /proc/mounts
/dev/disk/by-uuid/fb9cbb11-964a-4b92-bde3-50674324e670 / ext4 
rw,relatime,barrier=1,data=ordered 0 0
/dev/sda5 /home xfs rw,relatime,attr2,logbufs=8,logbsize=256k,noquota 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0)   /dev/sda
*********************** END /boot/grub/device.map

*********************** BEGIN /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from  and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
set default=0
set timeout=5
set root=(hd0,1)
search --fs-uuid --set fb9cbb11-964a-4b92-bde3-50674324e670
if loadfont /usr/share/grub/ascii.pf2 ; then
  set gfxmode=640x480
  insmod gfxterm
  insmod vbe
  if terminal_output gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set root=(hd0,1)
search --fs-uuid --set fb9cbb11-964a-4b92-bde3-50674324e670
insmod png
if background_image /boot/grub/moreblue-orbit-grub.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_linux ###
menuentry "Debian GNU/Linux, linux 2.6.31-rc7-tp42-toi-3.0.1-04741-
g57e61c0" {
        set root=(hd0,1)
        search --fs-uuid --set fb9cbb11-964a-4b92-bde3-50674324e670
        linux   /boot/vmlinuz-2.6.31-rc7-tp42-toi-3.0.1-04741-g57e61c0 
root=UUID=fb9cbb11-964a-4b92-bde3-50674324e670 ro acpi_sleep=s4_nohwsig 
resume=swap:/dev/sda6 
        initrd  /boot/initrd.img-2.6.31-rc7-tp42-toi-3.0.1-04741-g57e61c0
}
menuentry "Debian GNU/Linux, linux 2.6.31-rc7-tp42-toi-3.0.1-04741-
g57e61c0 (recovery mode)" {
        set root=(hd0,1)
        search --fs-uuid --set fb9cbb11-964a-4b92-bde3-50674324e670
        linux   /boot/vmlinuz-2.6.31-rc7-tp42-toi-3.0.1-04741-g57e61c0 
root=UUID=fb9cbb11-964a-4b92-bde3-50674324e670 ro single 
acpi_sleep=s4_nohwsig resume=swap:/dev/sda6
        initrd  /boot/initrd.img-2.6.31-rc7-tp42-toi-3.0.1-04741-g57e61c0
}
menuentry "Debian GNU/Linux, linux 2.6.30-1-686" {
        set root=(hd0,1)
        search --fs-uuid --set fb9cbb11-964a-4b92-bde3-50674324e670
        linux   /boot/vmlinuz-2.6.30-1-686 root=UUID=fb9cbb11-964a-4b92-
bde3-50674324e670 ro acpi_sleep=s4_nohwsig resume=swap:/dev/sda6 
        initrd  /boot/initrd.img-2.6.30-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.30-1-686 (recovery mode)" {
        set root=(hd0,1)
        search --fs-uuid --set fb9cbb11-964a-4b92-bde3-50674324e670
        linux   /boot/vmlinuz-2.6.30-1-686 root=UUID=fb9cbb11-964a-4b92-
bde3-50674324e670 ro single acpi_sleep=s4_nohwsig resume=swap:/dev/sda6
        initrd  /boot/initrd.img-2.6.30-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.29.6-tp42-toi-3.0.1-01085-gf325e4a" 
{
        set root=(hd0,1)
        search --fs-uuid --set fb9cbb11-964a-4b92-bde3-50674324e670
        linux   /boot/vmlinuz-2.6.29.6-tp42-toi-3.0.1-01085-gf325e4a 
root=UUID=fb9cbb11-964a-4b92-bde3-50674324e670 ro acpi_sleep=s4_nohwsig 
resume=swap:/dev/sda6 
        initrd  /boot/initrd.img-2.6.29.6-tp42-toi-3.0.1-01085-gf325e4a
}
menuentry "Debian GNU/Linux, linux 2.6.29.6-tp42-toi-3.0.1-01085-gf325e4a 
(recovery mode)" {
        set root=(hd0,1)
        search --fs-uuid --set fb9cbb11-964a-4b92-bde3-50674324e670
        linux   /boot/vmlinuz-2.6.29.6-tp42-toi-3.0.1-01085-gf325e4a 
root=UUID=fb9cbb11-964a-4b92-bde3-50674324e670 ro single 
acpi_sleep=s4_nohwsig resume=swap:/dev/sda6
        initrd  /boot/initrd.img-2.6.29.6-tp42-toi-3.0.1-01085-gf325e4a
}
menuentry "Debian GNU/Linux, linux 2.6.26-2-686" {
        set root=(hd0,1)
        search --fs-uuid --set fb9cbb11-964a-4b92-bde3-50674324e670
        linux   /boot/vmlinuz-2.6.26-2-686 root=UUID=fb9cbb11-964a-4b92-
bde3-50674324e670 ro acpi_sleep=s4_nohwsig resume=swap:/dev/sda6 
        initrd  /boot/initrd.img-2.6.26-2-686
}
menuentry "Debian GNU/Linux, linux 2.6.26-2-686 (recovery mode)" {
        set root=(hd0,1)
        search --fs-uuid --set fb9cbb11-964a-4b92-bde3-50674324e670
        linux   /boot/vmlinuz-2.6.26-2-686 root=UUID=fb9cbb11-964a-4b92-
bde3-50674324e670 ro single acpi_sleep=s4_nohwsig resume=swap:/dev/sda6
        initrd  /boot/initrd.img-2.6.26-2-686
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86 ###
menuentry "Memory test (memtest86)" {
        linux   /boot/memtest86.bin
}
### END /etc/grub.d/20_memtest86 ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
        linux   /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
        linux   /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file is an example on how to add custom entries
### END /etc/grub.d/40_custom ###
*********************** END /boot/grub/grub.cfg

-- 
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA  B82F 991B EAAC A599 84C7

Attachment: signature.asc
Description: This is a digitally signed message part.


--- End Message ---
--- Begin Message ---
Am Samstag, den 29.08.2009, 14:27 +0200 schrieb Martin Steigerwald:
> Am Samstag 29 August 2009 schrieben Sie:
> > Am Samstag, den 29.08.2009, 12:51 +0200 schrieb Martin Steigerwald:
> > > Am Samstag 29 August 2009 schrieben Sie:
> > > > The grub-pc.config script only extracts once the kopt parameter
> > > > from it and saves it in /etc/default/grub.
> > >
> > > And thats the only parameter that was messed up after downgrading
> > > grub-pc from sid to squeeze. /etc/default/grub then contained kopt
> > > from menu.lst again.
> >
> > Hm grub-pc.config before I changed it checked if grub-pc/linux_cmdline
> > returns "fillme" and only then extracts the kopt value.
> > So that should only happen if you have purged the package and then
> > reinstalled it but not if you just downgraded with apt/dpkg.
> 
> Well I didn't purge the package before. 
> 
> > > > And if you choose to chainload grub2 then the update-grub from
> > > > grub-legacy is run with a special variable set, so that it
> > > > generates a menu entry for GRUB 2.
> > >
> > > No, I let it replace GRUB 1 completely. I was surprised that it even
> > > asked me that again, since I have been using GRUB 2 exclusively
> > > before. I have / on a ext4 since about a week or two so I wouldn't
> > > want to switch back to GRUB 1 anyway.
> >
> > The chainload question is (at least in the sid version) only asked if
> > stage2 and menu.lst exists and core.img not.
> 
> /boot/grub/menu.lst and /boot/grub/stage1 were still floating around. But 
> core.img should have been there too, since I used GRUB 2 from sid before. 
> After this incidence I renamed menu.lst.

Ah I forgot that that old version only checks if menu.lst exists.
And I renamed the template that gets checked.

> 
> > > > In the sid version I changed the handling of the Linux kernel
> > > > parameters, it could be that this doestn't work cleanly with a
> > > > downgrade but this isn't fixable.
> > >
> > > Well when its just a problem with an interim testing/unstable version
> > > that stable users won't see that might not be a big problem. But if
> > > someone experiences a problem on upgrading grub-pc from lenny to
> > > squeeze when its stable and gets that problem own downgrade that
> > > wouldn't be that convenient. OTOH AFAIR package downgrades aren't
> > > supported officially.
> >
> > Yes they aren't. You can't upgrade from oldstable to stable and then
> > downgrade again to oldstable.
> 
> So you close that bug? I am okay with that. I am more interested that the 
> grub-pc that will enter squeeze is going to be rock stable. When I think 
> over it, I do not care about some interim versions between Lenny and 
> Squeeze that much.

Yeah closing now. This happens only if you downgrade to an older
version.
1.96+20090808-1 was the first version which also checks for stage2 and !
core.img


-- 
Felix Zielcke
Proud Debian Maintainer



--- End Message ---

Reply via email to