[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#302716: dpkg screws up GRUB's menu.lst



reassign 302716 kernel
severity 302716 important
thanks

On Sat, Apr 02, 2005 at 04:49:37PM +0200, Leszek Koltunski wrote:
> 
> Subject: dpkg screws up GRUB's menu.lst
> Package: dpkg
> Version: 1.10.27
> Severity: grave
> 
> Some time ago I moved my root partition from hda3 to hda5. All online
> tutorials advise to simply
> 1) boot into single user
> 2) copy the files around
> 3) chroot install-grub in the new partition
> 
> and that's what I did. Everything works, except when I install a new
> customized kernel with dpkg -i :
So, did grubs input file (menu.lst?) get updated?

> utumno:/home/leszek/deb# dpkg -i kernel-image-2.6.12-rc1-mm4_5_i386.deb
> Selecting previously deselected package kernel-image-2.6.12-rc1-mm4.
> (Reading database ... 77450 files and directories currently
> installed.)
> Unpacking kernel-image-2.6.12-rc1-mm4 (from
> kernel-image-2.6.12-rc1-mm4_5_i386.deb) ...
> Setting up kernel-image-2.6.12-rc1-mm4 (5) ...
> Searching for GRUB installation directory ... found: /boot/grub .
> Testing for an existing GRUB menu.list file... found:
> /boot/grub/menu.lst .
> Searching for splash image... none found, skipping...
> Found kernel: /boot/vmlinuz-2.6.11wireless
> Found kernel: /boot/vmlinuz-2.6.12-rc1-mm4
> Found kernel: /boot/vmlinuz-2.6.11
> Updating /boot/grub/menu.lst ... done
> 
> utumno:/home/leszek/deb# vim /boot/grub/menu.lst
> 
> (...)
> 
> title           Debian GNU/Linux, kernel 2.6.12-rc1-mm4
> root            (hd0,4)
> kernel          /boot/vmlinuz-2.6.12-rc1-mm4 root=/dev/hda3 ro
> savedefault
> boot
> 
> All other kernels I have installed also get 'root=/dev/hda3' passed.
Where did you get this kernel, anyway?  That kernel doesn't seem to be
provided by Debian.  I'm reassinging to the "kernel" package until
more is known.  Did you create the .deb yourself with `cd $linux; make
deb-pkg`?  In that case maybe the upstream kernel people have a
problem.  Did you even get the kernel source from the debian archive?

> I dont know if it is a bug in dpkg, grub or it is something I failed to do 
> whilst moving the root partition. However, as I couldn't find
> any info on how to inform dpkg about this change in Debian's manuals,
> I am filing this bug.
It is definitely not a dpkg bug; all dpkg does is put the files where
the .deb tells it to, and then call some shell scripts provided by the
.deb.

I expect that the shell scripts ("maintainer scripts") don't do what
you want.  They are probably parsing the grub file and rewriting it to
add the new kernel image.

Justin



Reply to: