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

Re: GRUB duplicates kernel entries in menu.lst



Joe Hart wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Raffaele Morelli wrote:
Hi you all

I noticed this strange behaviour in grub, in etch and now in lenny.

Every time update-grub is called, due to a kernel installation or
removal, menu.lst grows bigger. Installed kernel entries for (recovery
mode) are duplicated, same thing happened for AUTOMAGIC KERNELS LIST
section.

Actually the latter problem seems to be solved after a manual removal of
AUTOMAGIC KERNELS LIST duplicates.

I did a apt-get --reinstall install grub and dpkg-reconfigure grub with
no success and removing recovery mode duplicated lines does not solve. I
know I won't be installing and removing kernels every day but I think
this is worth noting.

Any ideas?

I believe that it is designed that way on purpose.  If you install a new
kernel and it doesn't work, you can always fall back to using the old one.

You can safely remove any kernel that you are not running at the time,
but I would recommend keeping 2 kernels.  The current one, and the one
that worked before.  You never know when one might not work and you'll
need the other.

Joe


Could the OP be referring to the fact that grub installs boot options for both the kernels *and* any symlinks in /boot. On my sid system I have vmlinuz and vmlinuz.old which are symlinks to the two latest kernel installed. Update-grub will add these to menu.lst in addition to the direct kernels so I have duplicate entries for these two kernels.

Wackojacko



Reply to: