Bug#464912: grub1 cruft left behind after transition

Joey Hess joeyh at debian.org
Sat Feb 9 19:45:36 UTC 2008


Package: grub-pc
Version: 1.96+20080203-1
Severity: normal

I've upgraded to grub 2, and per the debconf suggestion, I first let my
old grub 1 chain-load grub 2 for testing, and then used grub-install and 
update-grub to install grub 2.

(FWIW, I had to write down the commands debconf told me to run, it was a
little too long and complex to expect someone to remember it across reboots.)

Now I seem to have a certian amount of grub 1 cruft left in /boot/grub
that is no longer used, including menu.lst,
menu.lst_backup_by_grub2_postinst, menu.lst~, xfs_stage1_5, reiserfs_stage1_5,
stage1, stage2, e2fs_stage1_5, fat_stage1_5, jfs_stage1_5,
minix_stage1_5. 

I'm just guessing at which files belong to grub 1, and I obviously don't
want to guess wrong when rm-ing.

Could grub-pc perhaps include a upgrade-from-grub-1 script that handles
deleting these files, as well as running grub-install and update-grub?

-- Package-specific info:

*********************** BEGIN /proc/mounts
rootfs / rootfs rw 0 0
none /sys sysfs rw,nosuid,nodev,noexec 0 0
none /proc proc rw,nosuid,nodev,noexec 0 0
udev /dev tmpfs rw 0 0
/dev/mapper/kodama-root / ext3 rw,noatime,errors=remount-ro,data=ordered 0 0
/dev/mapper/kodama-root /dev/.static/dev ext3 rw,errors=remount-ro,data=ordered 0 0
tmpfs /lib/init/rw tmpfs rw,nosuid 0 0
usbfs /proc/bus/usb usbfs rw,nosuid,nodev,noexec 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0
devpts /dev/pts devpts rw,nosuid,noexec 0 0
/dev/hda1 /boot ext3 rw,data=ordered 0 0
dragon:/ /media/dragon nfs rw,vers=2,rsize=8192,wsize=8192,hard,nointr,proto=tcp,timeo=600,retrans=2,sec=sys,addr=192.168.1.127 0 0
slug:/ /media/slug nfs rw,vers=2,rsize=8192,wsize=8192,hard,nointr,proto=tcp,timeo=600,retrans=2,sec=sys,addr=192.168.1.4 0 0
turtle:/ /media/turtle nfs rw,vers=3,rsize=16384,wsize=16384,hard,nointr,proto=tcp,timeo=600,retrans=2,sec=sys,addr=192.168.1.130 0 0
turtle:/home /media/turtle/home nfs rw,vers=3,rsize=16384,wsize=16384,hard,nointr,proto=tcp,timeo=600,retrans=2,sec=sys,addr=192.168.1.130 0 0
dodo:/ /media/dodo nfs rw,vers=3,rsize=131072,wsize=131072,hard,nointr,proto=tcp,timeo=600,retrans=2,sec=sys,addr=192.168.1.3 0 0
dodo:/home /media/dodo/home nfs rw,vers=3,rsize=131072,wsize=131072,hard,nointr,proto=tcp,timeo=600,retrans=2,sec=sys,addr=192.168.1.3 0 0
*********************** END /proc/mounts

*********************** 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=(kodama-root)
terminal console
### 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, linux 2.6.24-1-686" {
	linux	(hd0,1)/vmlinuz-2.6.24-1-686 root=/dev/mapper/kodama-root ro 
	initrd	(hd0,1)/initrd.img-2.6.24-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.24-1-686 (single-user mode)" {
	linux	(hd0,1)/vmlinuz-2.6.24-1-686 root=/dev/mapper/kodama-root ro single 
	initrd	(hd0,1)/initrd.img-2.6.24-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.23-1-686" {
	linux	(hd0,1)/vmlinuz-2.6.23-1-686 root=/dev/mapper/kodama-root ro 
	initrd	(hd0,1)/initrd.img-2.6.23-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.23-1-686 (single-user mode)" {
	linux	(hd0,1)/vmlinuz-2.6.23-1-686 root=/dev/mapper/kodama-root ro single 
	initrd	(hd0,1)/initrd.img-2.6.23-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.22-3-686" {
	linux	(hd0,1)/vmlinuz-2.6.22-3-686 root=/dev/mapper/kodama-root ro 
	initrd	(hd0,1)/initrd.img-2.6.22-3-686
}
menuentry "Debian GNU/Linux, linux 2.6.22-3-686 (single-user mode)" {
	linux	(hd0,1)/vmlinuz-2.6.22-3-686 root=/dev/mapper/kodama-root ro single 
	initrd	(hd0,1)/initrd.img-2.6.22-3-686
}
menuentry "Debian GNU/Linux, linux 2.6.18-4-686" {
	linux	(hd0,1)/vmlinuz-2.6.18-4-686 root=/dev/mapper/kodama-root ro 
	initrd	(hd0,1)/initrd.img-2.6.18-4-686
}
menuentry "Debian GNU/Linux, linux 2.6.18-4-686 (single-user mode)" {
	linux	(hd0,1)/vmlinuz-2.6.18-4-686 root=/dev/mapper/kodama-root ro single 
	initrd	(hd0,1)/initrd.img-2.6.18-4-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'), (500, 'stable'), (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-files                4.0.2          Debian base system miscellaneous f
ii  debconf [debconf-2.0]     1.5.19         Debian configuration management sy
ii  libc6                     2.7-6          GNU C Library: Shared libraries
ii  liblzo2-2                 2.02-3         data compression library
ii  libncurses5               5.6+20080119-1 Shared libraries for terminal hand

grub-pc recommends no packages.

-- debconf information excluded

-- 
see shy jo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20080209/133e1955/attachment.pgp 


More information about the Pkg-grub-devel mailing list