В Tue, 29 Jan 2013 18:07:47 -0500 Patrick Shanahan <paka@opensuse.org> пишет:
- Andrey Borzenkov <arvidjaar@gmail.com> [01-29-13 14:22]:
В Tue, 29 Jan 2013 13:25:48 -0500 Patrick Shanahan <paka@opensuse.org> пишет:
- Andrey Borzenkov <arvidjaar@gmail.com> [01-29-13 13:03]:
В Tue, 29 Jan 2013 12:50:33 -0500 Roman Bysh <rbtc1@rogers.com> пишет:
First off, never edit the "grub.cfg" file manually due to the fact that when you run grub2-mkconfig command, all of the manual entries will disappear.
If you want to make chainloader entries, use the /etc/grub.d/40_custom file. Save your changes and then run:
grub2-mkconfig -o /boot/grub2/grub.cfg
On openSUSE you can also edit /boot/grub2/custom.cfg which is sourced during boot. No need to run grub2-mkconfig.
so cp /boot/grub2/grub.cfg /boot/grub2/custom.cfg and edit custom.cfg?
No copy, just edit.
If I *create* custom.cfg, ie: touch ./custom.cfg, it is an empty file. Remember I am not expert with grub2. What do I edit?
if custom.cfg exists, is it used instead of grub.cfg or in addition to?
In addition to. custom.cfg is included into grub.cfg at runtime.
So "melded together" or added at the end of or ...
in editing "40_custom" it must be necessary to copy and alter "entire" sections of grub.cfg as "40_custom" appears to merely add lines to the "bottom" of grub.cfg. ie: its format/usage is not well explained, aics.
info grub2, Configuration - Simple Configuration. Did you read it?
Ah, some enlightenment. No, I had not.
I tried to add "video=1600x1200-32" to grub.cfg kernel parameters line via 40_custom and it only added a single line at the bottom of grub.cfg and had *no* effect.
There is "Additional kernel command line parameters" in YaST2 bootloader configuration (loosely translation back to English). Does it not work if you add it there?
It was yast that added unwanted chars to the kernel parameter line and would not remove them.
And bug report number is ...?
I was not *blaming* grub-mkconfig, rather I believe yast deformed the kernel parameters line with, iirc, "24-bit" and another partial string beginning with "(".
grub2 "may be a good thing" but is a mess to the unknowing w/o very good documentation and that requirement does not exist. This point is a *major* failure.
What exactly do you need to customize that is not documented?
Perhaps I view too narrowly the useage as I wanted to add "video=1600x1200x32" to the kernel parameters using the drop-down table offered in "yast bootloader" but could never get the system to boot to that video mode. Indeed, yast does not offer "video=" but "vga=".
But that's YaST2, not grub2, you are talking about.
So I
tried to add by 40_custom, which did add the string to grub.cfg (at the bottom).
No, it won't work this way. You juts need to add it to GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub. 40_custom is for adding verbatim *code* to grub.cfg, not for customizing grub-mkconfig. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org