On 06/20/2010 06:59 PM, Amadeusz Żołnowski wrote:
Hello everyone, I'd like to present a draft of install script of new generic i18n module. ~ Abstract ~ Different distros have variables holding keyboard settings, fonts and so in different files and even under different names. Sometimes it's “SYSFONT” in /etc/sysconfig/i18n, sometimes it's “consolefont” in /etc/conf.d/consolefont. I came up with idea to hold mappings in configuration file (dracut.conf or dracut.conf.d/«distro».conf). The script gathers variables and prepares two “unified” files inside Dracut overlay. The rest of the script is quite the same as redhat-i18n but some tweaks. Dracut uses console_init written in C included in initscripts RPM, but I'm gonna rewrite it in bash and then i18n module will be fully generic. Please post here any doubts, questions, suggestions, insults… ;-)
# $@ = list in format specified below (BNF notation) # #<list> ::=<element> |<element> " "<list> #<element> ::=<conf-file-name> ":"<map-list> #<map-list> ::=<mapping> |<mapping> ","<map-list> #<mapping> ::=<src-var> "-"<dst-var> |<src-var> # # We assume no whitespace are allowed between symbols. #<conf-file-name> is a file holding<src-var> in your system. #<src-var> is a variable holding value of meaning the same as<dst-var>. #<dst-var> is a variable which will be set up inside initramfs. # If<dst-var> has the same name as<src-var> we can omit<dst-var>. # # Hope it's clear. ;-)
Hmm, what about varnames with a "-" ? You might want to use "@". -- To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html