Nieuws:

Welkom, Gast. Alsjeblieft inloggen of registreren.
Heb je de activerings-mail niet ontvangen?

Auteur Topic: [(voor mij) OPGELOST]Grub2: hoe de titels en de volgorde van entry's veranderen?  (gelezen 963 keer)

Offline Thijsg

  • Lid
Hallo allemaal,

Pas heb ik Ubuntu opnieuw geïnstalleerd, Grub2 kwam mee. Er valt best mee te leven, alleen zeggen de titels van de entry's mij niets en wil ik graag de volgorde veranderen, hoe moet dat?
« Laatst bewerkt op: 2009/12/20, 18:11:09 door Thijsg »


Offline track

  • Lid
Re: Grub2: hoe de titels en de volgorde van entry's veranderen?
« Reactie #2 Gepost op: 2009/12/20, 14:14:33 »
Hoi Thijs,

dat gebeurt er op een helemaal andere manier...
Pak even de handleiding erbij: http://wiki.ubuntu-nl.org/community/Grub2

Het bestand  /boot/grub/grub.cfg  wordt feitelijk gebouwd door de reeks scripten in  /etc/grub.d/ ,
dus moet je die scripten aanpassen.
Net als bij andere dergelijke verzamelingen worden deze scripten vanaf de lage naar de hoge cijfers afgewerkt.

Dus, eerst 00_xxxx, 05_xxxx,  enz. ..
Als je de "andere systemen" dus vóór de Linux-kernels wil hebben zal je de  30_os-prober  moeten hernoemen
naar b.v. 09_os-prober , dan wordt dit gedeelte vóór de Uby-kernels in de lijst gezet (want dat is 10_linux )
bij de volgende  update-grub  dan.

track

Offline Thijsg

  • Lid
Re: Grub2: hoe de titels en de volgorde van entry's veranderen?
« Reactie #3 Gepost op: 2009/12/20, 14:33:13 »
Grub2 is nogal complex, ik heb besloten de boel helemaal zelf te regelen.

In de tweede link van Gijsbert staat het volgende:
Citaat
# Building a Totally Customized Menu: Ok, admit you are a control freak and you want to see only what you build yourself - customized titles, no "memtest86+" and no extra kernels. Here is how you do it:

    * Run sudo update-grub to get the current available kernels.
    * Copy the desired "menuentry" listings from /boot/grub/grub.cfg to /etc/grub.d/40_custom The entry begins with the line starting with "menuentry" and ends with a line containing "}".
    * Add any other "menuentry" items you wish to see on the boot menu.
    * Edit the titles of the "menuentry" line if desired (between the quotation symbols). Do not change the lines following the "menuentry" line. Each entry should start with a "menuentry" line and end with a "}" on the last line.
    * Remove the executable bit from /etc/grub.d/10_linux, /etc/grub.d/20_memtest86+ and /etc/grub.d/30_os-prober
      Removing the executable bit from any file in /etc/grub.d will exclude the file from being included in grub updates.
      Code:

      sudo chmod -x /etc/grub.d/10_linux /etc/grub.d/20_memtest86+ /etc/grub.d/30_os-prober
    * Run "sudo update-grub"
    * The updated /boot/grub/grub.cfg file should now contain only sections for "00_header", "05_debian_theme" and "40_custom".
    * The grub.cfg file will not be updated with the addition of a new kernel. To add a new kernel, make "10_linux" executable, run "sudo update-grub" to refresh the available kernels, and repeat these instructions.