How to add a command permanently to grub2
Posted
by
tomodachi
on Ask Ubuntu
See other posts from Ask Ubuntu
or by tomodachi
Published on 2012-06-12T14:26:16Z
Indexed on
2012/06/12
22:48 UTC
Read the original article
Hit count: 241
I have a fairly special setup, using Linux on a MacBook Laptop.
to switch off my secondary graphics card in it I'm required to add these lines to my grub
outb 0x728 1
outb 0x710 2
outb 0x740 2
outb 0x750 0
I do this by pressing 'e' for my selected grub menu option and adding the lines one by one . then finally booting . But as we know it's not permanent.
I cant really figure out where i need to add it for grub to always append it to my Linux boot options.
It's doesn't seem to belong in /etc/default/grub since here i can add stuff to the kernel boot line
Honestly i'm afraid to fiddle to much with grub on my computer since getting it to triple boot Linux/Mac/Windows was a very delicate and timely matter.
Does anyone have any idea of where to add it?
© Ask Ubuntu or respective owner