kernel install script bug, breaking grub /boot/menu.lst
Hello,
I have just noticed a bug in the kernel install scripts. I have to
manually fix my /boot/menu.lst.
I am using a January install of debian sarge.
I had this in my /boot/menu.lst
===================================================
title Debian GNU/Linux, kernel 2.6.8-1-386
root (hd0,1)
kernel /vmlinuz-2.6.8-1-386 root=/dev/sda3 ro hda=ide-scsi
initrd /initrd.img-2.6.8-1-386
savedefault
boot
title Debian GNU/Linux, kernel 2.6.8-1-386 (recovery mode)
root (hd0,1)
kernel /vmlinuz-2.6.8-1-386 root=/dev/sda3 ro single
initrd /initrd.img-2.6.8-1-386
savedefault
boot
### END DEBIAN AUTOMAGIC KERNELS LIST
==================================================
After installing an optimised kernel that file was broken, my "
hda=ide-scsi" addition params were droped from my origional i386 kernel,
and not replicated to my new kernel!
# apt-get install kernel-image-2.6.8-2-k7
Reading Package Lists... Done
Building Dependency Tree... Done
Suggested packages:
lilo kernel-doc-2.6.8
The following NEW packages will be installed:
kernel-image-2.6.8-2-k7
0 upgraded, 1 newly installed, 0 to remove and 355 not upgraded.
Need to get 15.2MB of archives.
After unpacking 45.2MB of additional disk space will be used.
Get:1 ftp://ftp.uk.debian.org testing/main kernel-image-2.6.8-2-k7
2.6.8-13 [15.2MB]
Fetched 15.2MB in 2m10s (117kB/s)
Selecting previously deselected package kernel-image-2.6.8-2-k7.
(Reading database ... 95036 files and directories currently installed.)
Unpacking kernel-image-2.6.8-2-k7 (from
.../kernel-image-2.6.8-2-k7_2.6.8-13_i386.deb) ...
Setting up kernel-image-2.6.8-2-k7 (2.6.8-13) ...
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: /vmlinuz-2.6.8-2-k7
Found kernel: /vmlinuz-2.6.8-1-386
Found kernel: /memtest86+.bin
Updating /boot/grub/menu.lst ... done
See how /boot/menu.lst ended up:
=============================
## ## End Default Options ##
title Debian GNU/Linux, kernel 2.6.8-2-k7
root (hd0,1)
kernel /vmlinuz-2.6.8-2-k7 root=/dev/sda3 ro
initrd /initrd.img-2.6.8-2-k7
savedefault
boot
title Debian GNU/Linux, kernel 2.6.8-2-k7 (recovery mode)
root (hd0,1)
kernel /vmlinuz-2.6.8-2-k7 root=/dev/sda3 ro single
initrd /initrd.img-2.6.8-2-k7
savedefault
boot
title Debian GNU/Linux, kernel 2.6.8-1-386
root (hd0,1)
kernel /vmlinuz-2.6.8-1-386 root=/dev/sda3 ro
initrd /initrd.img-2.6.8-1-386
savedefault
boot
title Debian GNU/Linux, kernel 2.6.8-1-386 (recovery mode)
root (hd0,1)
kernel /vmlinuz-2.6.8-1-386 root=/dev/sda3 ro single
initrd /initrd.img-2.6.8-1-386
savedefault
boot
title Debian GNU/Linux, kernel memtest86+
root (hd0,1)
kernel /memtest86+.bin
savedefault
boot
### END DEBIAN AUTOMAGIC KERNELS LIST
====================================
Let me know if you need even more info.
Kind regards
JG
--
Homepage: http://jguk.org/
Blog: http://jguk.org/blog.rss
Radio: http://jguk.org/#radio
Reply to: