Re: Migrating to Grub2 deletes kernel automagic updates and other settings



On Thu, Dec 03, 2009 at 03:10:19PM EST, Tom H wrote:
Is the os-prober package installed?

Nope...

They may or may not be an os-prober package but when it comes to grub,
os-prober is a script in /etc/grub.d (/etc/grub.d/30_os-prober). If it
is executable, it will add the kernels that it finds to
/boot/grub/grub.cfg when update-grub is run.


I don't like the idea of grub building its .cfg file from bits and
pieces of grub-legacy, or lilo stuff that may live on other
partitions.
So, I let it happen once to build grub.cfg and copied all the stanzas
from other systems to /etc/grub.d/40_custom, modified them to my
liking, deactivated os-prober by making the script in /etc/grub.d/ '-x',
and ran update-grub.

I do the same. All my entries are in 40_custom and 10_linux and
30_os-prober are not executable.

Way to go if you'd rather stay out of trouble.

CJ


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: GRUB failure
    ... me to the GRUB prompt, ... I cannot boot the computer into any operating system. ... subject of "unsubscribe". ... Trouble? ...
    (Debian-User)
  • Re: Recomendations - becoming a C soldier.
    ... kernel of some system or writing good apps without some trouble? ... There's a bootloader called Grub. ... Your assignment is to change the 'root' command of Grub so that it not ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Installing Windows with Debian already installed
    ... other partitions undisturbed you should be able to get Debian running ... how to restore grub on the drive again. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Trouble? ...
    (Debian-User)
  • Re: Migrating to Grub2 deletes kernel automagic updates and other settings
    ... They may or may not be an os-prober package but when it comes to grub, ... it will add the kernels that it finds to ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: How do I prevent Grub from getting automagically updated?
    ... Therefor I ... would like to stop Grub from updating automagically. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Trouble? ...
    (Debian-User)