Additional GRUB Commands

Asked by Andrew D S Jones on 2011-04-20

I used grub-customzer with great success. Thank you.

Is there any documentaion?

I was wondering where I could find a full list of the commands that I could tell grub-customizerm to use.
eg
COLOR_NORMAL="black/black"
COLOR_HIGHLIGHT="magenta/black"

I know that I could untick all the versions but I would like to use the HOWMANY=1 but I am unsure if that is the entry I need.

Secondly further updates of ubuntu are added to the top of the menu. With your program I can move Windows to the top. Is there a way of automatically keeping windows at the top or do I have to move it after each update?

Thanks once again
Andrew

Question information

Language:
English Edit question
Status:
Answered
For:
Grub Customizer Edit question
Assignee:
No assignee Edit question
Last query:
2011-04-22
Last reply:
2011-04-22

You mean the advanced tab of the settings dialog? No, this is related to the grub2 scripts. Grub Customizer creates an option in /etc/default/grub for all the settings you do, in this dialog… When you run update-grub (or using the save button in Grub Customizer), the script can read the settings, but if you've defined custom settings, they simply aren't processed until you write an own script which uses them.

Your windows entry should stay on top when doing an update. New grub2 entries will be stored at the position of the placeholder "(new entries)" (as long as this is not un-ticked).

Andrew D S Jones (adsjones) said : #2

The dialog I am referring to is under
Preferences > Advanced

I guess I need to write my own scripts but I have no idea how to go about this.
Any documentation?

I entered GRUB_DISABLE_LINUX_RECOVERY true and that worked perfectly

I moved Windows to the top by moving up
os-prober (custom)
whose next lines are
(new Entries)
Windows 7 (loader) (on /dev/sda2)

this also works

So now I want to use a 'Rule' to automatically limit the number of Linux kernels that are displayed.

I will simply un-tick the Memory test entries.

I summary I want to see 2 entries
Windows
Linux 2.6.....

I also want a new linux update to replace the one shown.

thanks Andrew

You could disable the linux script and copying the first generated linux boot option (from the /boot/grub/grub.cfg) to your 40_custom (use a text editor to do this) and then you have to change

/boot/vmlinuz-* -> /vmlinuz
/boot/initrd-*.img -> /initrd.img

Alternatively simply uninstall the old kernels whenever you've installed a new one.

Andrew D S Jones (adsjones) said : #4

How do I disable the linux script?

Do I copy the lines beginning at menuentry thru to the ) ?

Can I change to menu Text here?

thanks Andrew

> How do I disable the linux script?

By unchecking it in Grub Customizer or by running "sudo chmod -x /etc/grub.d/*_linux". But you should copy the linux menuentry source from grub.cfg *before* doing this (see below).

> Do I copy the lines beginning at menuentry thru to the ) ?

No, a menuentry should start with "menuentry … {" and end with "}"

> Can I change to menu Text here?

Yes. Behind you can chane the title after copying.

Can you help with this problem?

Provide an answer of your own, or ask Andrew D S Jones for more information if necessary.

To post a message you must log in.