[opensuse-factory] How can I mask the original entry in Grub2 after customizing it using 40-custom
Hello all, Since Grub2 has no way of editing the original "Section Field". I used the "40-custom" script to create "my preferred entry" that I would like to see in the boot menu. As of now, "my preferred entry" appears at the bottom of the menu. How can I _mask_ the original entry and replace it with "my preferred entry"? Cheers! Roman --------------------------------------------------------------- openSUSE -- Get it! Discover it! Share it! --------------------------------------------------------------- http://linuxcounter.net/ #179293 -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On July 9, 2012 11:31:53 AM Roman Bysh wrote:
Hello all,
Since Grub2 has no way of editing the original "Section Field". I used the "40-custom" script to create "my preferred entry" that I would like to see in the boot menu.
As of now, "my preferred entry" appears at the bottom of the menu.
How can I _mask_ the original entry and replace it with "my preferred entry"?
Okay. After much experimenting I began writing a script to: 1. Use chmod -x 10_linux and 30_os-prober 2. Create a script file 06_opensuse based on 40_custom Note: Since 06_opensuse takes precedance over 10_linux, the custom entries will appear in the grub2 boot menu 3. Copy the original boot entries from /boot/grub2/grub.cfg to 06_opensuse 4. Rename the menuentry to my liking and save the changes 5. Run grub2-mkconfig -o /boot/grub2/grub.cfg 6. Check my changes using "cat /boot/grub2/grub.cfg" 7. Shutdown and restart my system to view the customized entries I'm sure there's still more to come. That's all I have for now. C heers! Roman -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (1)
-
Roman Bysh