Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=545499
--- Comment #4 from Odin Trisk <fedora-bugzilla-odin(a)the-morg.org> 2009-12-09
05:42:11 EDT ---
Further thoughts on this. Hans de Goede has understood the point being made.
Can GRUB be modified to allow a per image option "append-from-file locale.opts"
Making for something like (please excuse the specifics this is an FC4 example
grub.conf not an FC12) :
title Linux (2.6.y.z)
root (hd0,0)
kernel /zmlinuz-2.6.x.y.fc12.x86_64 ro root=LABEL=root rhgb quiet
append-from-file locale.opts
initrd /initrd-2.6.x.y.img
==== BEGIN /boot/grub/locale.opts ====
SYSFONT=latarcyrheb-sun16
LANG=en_US.UTF-8
KEYTABLE=ko
==== END ====
What GRUB would then do is load up additional options from a file and then
perform an "options merge". If the same option name already exists in the
grub.conf (on the "kernel" command line) it will always have priority (and the
one from locale.opts is ignored/discarded). All the options from locale.opts
would be appended to the end of the existing command line.
Existance of the file /boot/grub/locale.opts is optional. IT SHOULD NEVER
CAUSE FAILURE TO BOOT.
If there is a parse error with /boot/grub/locale.opts the kernel should
continue to boot on a best-efforts basis. The parse can be made so simple that
a parse error should never occur, one option per line, first "=" delimits
name/value pair, leading white-space is removed, white-space around first "="
is removed, name or value part can be wrapped in quotations marks (which if
found as first and last character are removed from data), the rest is take
literally. A PARSE RROR SHOULD NEVER CAUSE FAILURE TO BOOT.
This would then mean applications like system-config-language would be editing
a much simpler text file and be spared the headache of future bugs relating to
"I used system-config-language" but my system no longer boots! Which would be
a major failure (in design).
I don't see why the system-config-language people should have the headache of
having to edit such an important system config file (grub.conf) themselves.
They require protection from problems, changes and lack of knowledge.
So GRUB either provides a tool to edit grub.conf or it provide a mechanism
(such as described above) to contain/encapsulate the potential for problems
occurring.
--
Configure bugmail:
https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.