One kernel installed, four grub menu entries?

2007-09-24 Thread Nate Bargmann
This one has been driving me batty and I've not figured out the cause
of this one yet.  On this desktop with Sid installed and grub as the
bootloader, for some time (months) update-grub has been adding a
Default entry and then repeats the entries again:

title   Debian GNU/Linux, kernel 2.6.22-2-686 Default
root(hd0,0)
kernel  /boot/vmlinuz root=/dev/hda1 apm=off acpi=on ro
initrd  /boot/initrd.img
savedefault

title   Debian GNU/Linux, kernel 2.6.22-2-686 Default (recovery mode)
root(hd0,0)
kernel  /boot/vmlinuz root=/dev/hda1 apm=off acpi=on ro single
initrd  /boot/initrd.img
savedefault

title   Debian GNU/Linux, kernel 2.6.22-2-686
root(hd0,0)
kernel  /boot/vmlinuz-2.6.22-2-686 root=/dev/hda1 apm=off acpi=on ro
initrd  /boot/initrd.img-2.6.22-2-686
savedefault

title   Debian GNU/Linux, kernel 2.6.22-2-686 (recovery mode)
root(hd0,0)
kernel  /boot/vmlinuz-2.6.22-2-686 root=/dev/hda1 apm=off acpi=on ro 
single
initrd  /boot/initrd.img-2.6.22-2-686
savedefault


On my laptop I also have Sid installed and its grub doesn't do this!

I'd be quite happy if the Default entries were never created as they
are redundant to me.  The update-grub manpage offered no clues.

- Nate 
-- 
 Wireless | Amateur Radio Station N0NB  |  Successfully Microsoft
  Amateur radio exams; ham radio; Linux info @  | free since January 1998.
 http://www.qsl.net/n0nb/   |  Debian, the choice of
 My Kawasaki KZ-650 SR @| a GNU generation!
http://www.networksplus.net/n0nb/   |   http://www.debian.org


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: One kernel installed, four grub menu entries?

2007-09-24 Thread Andrew Sackville-West
On Mon, Sep 24, 2007 at 07:13:40PM -0500, Nate Bargmann wrote:
 This one has been driving me batty and I've not figured out the cause
 of this one yet.  On this desktop with Sid installed and grub as the
 bootloader, for some time (months) update-grub has been adding a
 Default entry and then repeats the entries again:
 
 title   Debian GNU/Linux, kernel 2.6.22-2-686 Default
 root(hd0,0)
 kernel  /boot/vmlinuz root=/dev/hda1 apm=off acpi=on ro
 initrd  /boot/initrd.img
 savedefault

looks like update-grub is picking up initrd.img and vmlinux symlinks
that must exist in /boot. You could maybe delete these symlinks, as I
think theyre supposed to be in / anyway. 

That would get you down to 2 stanzas for each kernel.


A


signature.asc
Description: Digital signature


Re: One kernel installed, four grub menu entries?

2007-09-24 Thread Nate Bargmann
* Andrew Sackville-West [EMAIL PROTECTED] [2007 Sep 24 20:13 -0500]:
 
 looks like update-grub is picking up initrd.img and vmlinux symlinks
 that must exist in /boot. You could maybe delete these symlinks, as I
 think theyre supposed to be in / anyway. 
 
 That would get you down to 2 stanzas for each kernel.

If that don't beat all!

That was the trick it needed.  I got those symlinks out of /boot and
put them in / and my menu.lst is clean once more.

Thanks, Andrew.

- Nate 

-- 
 Wireless | Amateur Radio Station N0NB  |  Successfully Microsoft
  Amateur radio exams; ham radio; Linux info @  | free since January 1998.
 http://www.qsl.net/n0nb/   |  Debian, the choice of
 My Kawasaki KZ-650 SR @| a GNU generation!
http://www.networksplus.net/n0nb/   |   http://www.debian.org


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: One kernel installed, four grub menu entries?

2007-09-24 Thread Manoj Srivastava
On Mon, 24 Sep 2007 20:19:32 -0500, Nate Bargmann [EMAIL PROTECTED] said: 

 * Andrew Sackville-West [EMAIL PROTECTED] [2007 Sep 24
   20:13 -0500]:
 looks like update-grub is picking up initrd.img and vmlinux symlinks
 that must exist in /boot. You could maybe delete these symlinks, as I
 think theyre supposed to be in / anyway.
 
 That would get you down to 2 stanzas for each kernel.

 If that don't beat all!

 That was the trick it needed.  I got those symlinks out of /boot and
 put them in / and my menu.lst is clean once more.

If you are using grub (an update grub), you do not need those
 symlinks at all.
--8---cut here-/etc/kernel-img.conf--start--8---
# Kernel image management overrides
# See kernel-img.conf(5) for details
do_symlinks = no
do_bootloader = no
do_bootfloppy = no
do_initrd = yes
link_in_boot = no
postinst_hook = update-grub
postrm_hook   = update-grub
--8---cut here---end---8---

manoj
-- 
Things worth having are worth cheating for.
Manoj Srivastava [EMAIL PROTECTED] http://www.golden-gryphon.com/
1024D/BF24424C print 4966 F272 D093 B493 410B  924B 21BA DABB BF24 424C


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]