Harald Hoyer
48b7ab1b35
i18n/parse-i18n.sh: fixed typo s/$key/$_key
...
Thanks xtraeme!
2014-04-28 12:47:45 +02:00
Harald Hoyer
30e6e809ed
Factor out all the "type -V" commands
...
Add new functions require_binaries() and require_any_binary() to be used
in the check() section of module-setup.sh.
These functions print a warning line telling the user, which binary is
missing for the specific dracut module.
This unifies the way of checking for binaries and makes the life of an
initramfs creator easier, if he wants to find out why a specific dracut
module is not included in the initramfs.
2014-02-06 16:45:20 +01:00
Harald Hoyer
45845cb6a5
i18n: introduce i18n_install_all, to install everything
...
if i18n_install_all is set to "yes", then install all keyboard layouts
and fonts regardless of the hostonly setting.
This way, people can switch keyboard layouts, without having to recreate
the initramfs.
2013-12-05 16:42:05 +01:00
Hannes Reinecke
1d3496b4c1
Fixup keymap setting for openSUSE
...
openSUSE is using compressed keymaps.
Signed-off-by: Hannes Reinecke <hare@suse.de>
2013-12-05 15:13:29 +01:00
Harald Hoyer
443fb52487
10i18n/parse-i18n.sh: fixed vconsole.conf/locale.conf generation
2013-12-05 15:13:29 +01:00
Harald Hoyer
6c8fc6e377
10i18n/parse-i18n.sh: parse rd.vconsole and rd.locale
...
and removed systemd part, because parse-i18n.sh is not even installed in
systemd driven initramfs images.
2013-10-08 15:05:21 +02:00
Harald Hoyer
8bcfd683bd
*/module-setup.sh: add comments for dracut called functions
2013-10-08 10:37:56 +02:00
Harald Hoyer
87bd8907a6
i18n: check for setfont and loadkeys binaries
2013-08-26 10:19:49 +02:00
Harald Hoyer
af11946054
dracut-functions.sh: inst_multiple == dracut_install
2013-08-07 10:33:15 +02:00
Harald Hoyer
55068924f7
i18n: do not moan about missing kbd directory
2013-07-17 11:58:17 +02:00
Harald Hoyer
f734347ae7
modules.d/10i18n/module-setup.sh: handle empty vconsole.conf
...
if /etc/vconsole.conf exists and is empty, then do not install anything.
2013-07-05 15:48:40 +02:00
Harald Hoyer
32bd2fbb4c
use "rm --" to guard against filenames beginning with "-"
2013-06-28 10:31:18 +02:00
Harald Hoyer
c6011f2add
i18n: make the default font configurable
...
To set the default font for your distribution, add
i18n_default_font="latarcyrheb-sun16"
to your /lib/dracut/dracut.conf.d/01-dist.conf distribution config.
2013-06-13 09:29:17 +02:00
Harald Hoyer
0a3e348225
i18n/module-setup.sh: install default font latarcyrheb-sun16
2013-05-29 13:27:03 +02:00
Harald Hoyer
6c6d805765
use systemd*dir variables everywhere
2013-03-26 16:19:00 +01:00
Harald Hoyer
b5859d6359
i18n: no manual setup needed if systemd is in the game
2013-03-06 17:22:09 +01:00
Harald Hoyer
965edeb63b
i18n/parse-i18n.sh: fix locale.conf caused by 4dbc1d1bb3
...
https://bugzilla.redhat.com/show_bug.cgi?id=870632
2012-11-22 11:59:10 +01:00
Canek Peláez Valdés
e5c9bc1198
Don't install FONT if it's the same as DEFAULT_FONT.
...
If the user defines FONT in /etc/vconsole.conf as the same font
defined in DEFAULT_FONT, when creating her initd she will get a
message similar to this one:
gzip: /var/tmp/initramfs.wzl9Qt/usr/share/consolefonts/LatArCyrHeb-16.psfu
already exists; do you wish to overwrite (y or n)?
Signed-off-by: Canek Peláez <canek@ciencias.unam.mx>
2012-10-16 09:38:17 +02:00
Harald Hoyer
600c876968
consistently lowercase "dracut"
2012-10-10 14:15:11 +02:00
Harald Hoyer
fdf2b152e5
i18n/parse-i18n.sh: correctly populate /etc/vconsole.conf
2012-10-08 15:38:41 +02:00
Harald Hoyer
4dbc1d1bb3
i18n/parse-i18n.sh: corrected the right option to use for the cmdline
2012-09-28 15:29:53 +02:00
Harald Hoyer
a0508937fc
i18n/10-console.rules: do the console init only one time
2012-09-24 15:12:20 +02:00
Stefan Reimer
a059f72b09
i18n/module-setup.sh: fixed include parsing
...
Due to bug in module-setup.sh in the i18n module includes from the main
keymap are not working and not added to the initrd image.
Only one quotation per line is removed. Needs to remove all.
2012-07-31 11:36:17 +02:00
Harald Hoyer
d782ffb822
i18n/parse-i18n.sh: remove udev rules
2012-07-30 17:08:52 +02:00
Harald Hoyer
aefea76cf8
set DRACUT_SYSTEMD for systemd mode in the initramfs
2012-07-30 17:08:51 +02:00
Harald Hoyer
95a5b23a38
i18n,terminfo/module-setup.sh: fixed "cp -t" calls
2012-07-27 15:34:54 +02:00
Harald Hoyer
3e51b2f6fc
fixed i18n and plymouth for systemd
2012-07-27 14:15:48 +02:00
Harald Hoyer
852105dc44
i18n/console_init.sh: skip, if we use systemd and use systemd-vconsole-init
2012-07-27 14:11:22 +02:00
Harald Hoyer
68e7661ca7
deprecate old command line options
2012-07-25 10:32:42 +02:00
Harald Hoyer
cef379bb03
i18n/10-console.rules: move console_init to the initqueue
2012-07-24 11:52:28 +02:00
Harald Hoyer
394ffc1d97
i18n/module-setup.sh: s/error/info if no keymap is configured
...
https://bugzilla.redhat.com/show_bug.cgi?id=836418
2012-07-05 11:15:35 +02:00
Harald Hoyer
99c7b70d1d
modules.d: get rid of "tr"
...
replace it with sed or str_replace or bash ${var/a/b}
2012-06-29 12:41:27 +02:00
Harald Hoyer
8c6151bd63
i18n/module-setup.sh:install_all_kbd(): speedup install
2012-06-29 12:41:26 +02:00
Harald Hoyer
ee876e03b9
fixed i18n for systemd and include more config files in host-only
2012-06-21 10:52:29 +02:00
Harald Hoyer
b7ddf6c1d8
make bzip2 optional
2012-02-25 17:22:02 +01:00
Harald Hoyer
cf38fc7389
10i18n/module-setup.sh: optimize install of all kbd files
2012-02-25 17:18:51 +01:00
Harald Hoyer
552ecca6db
Renamed all shell scripts to *.sh
2012-02-22 15:15:21 +01:00
Harald Hoyer
dfb08e9f1c
removed now useless cleanup hooks
...
in Fedora 17, we unpack /boot/initramfs-$(uname -r).img
on shutdown for a pivot root to disassemble the root device
2012-02-15 10:08:59 +01:00
Harald Hoyer
56ac6c7e76
move all file removal cleanups to "cleanup" hook
2012-02-07 19:44:03 +01:00
Harald Hoyer
a178ca6b5c
more cleanup in pre-pivot
2012-02-07 10:32:35 +01:00
Cong Wang
1b7fd0fa3e
Check module dependencies of mount points
...
Like -H, we need to poll every module to check if it is needed
to mount a specific device in '--mount'.
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
2012-01-13 11:35:49 +01:00
Colin Guthrie
95023eb325
Fix Unicode keytable.
...
This patch was originally from Mandriva: dracut-013-fix_unicode_keytable.patch
2012-01-09 13:25:12 +01:00
Michal Soltys
5259da1043
minor changes
...
- in 10i18n - do stty -iutf8 on non-utf8 consoles, for consistency with
iutf8 on utf8 ones
- vim modeline in xml file
Signed-off-by: Michal Soltys <soltys@ziu.info>
2011-10-20 13:06:52 +02:00
Michal Soltys
c32bda6bb9
bash3 compat patch
...
This patch replaces:
- {var}>... redirections with functionally identical eval construct +
explicit FDs
- ^^ and ,, case modifiers with temporary shopt
This allows us to lower minimum required bash version
to at least 3.1 (with current code).
Signed-off-by: Michal Soltys <soltys@ziu.info>
2011-10-11 09:37:01 +02:00
Harald Hoyer
e59f58f854
use inst_simple to install non-binary files
2011-08-12 13:11:30 +02:00
Harald Hoyer
1021371daf
i18n: disable systemd-vconsole-setup, until the tool is fixed
2011-05-20 15:17:31 +02:00
Harald Hoyer
3b403b32fc
removed trailing whitespaces
2011-05-10 11:56:09 +02:00
Harald Hoyer
6019e1053c
10i18n: do not use console_init shell script, if systemd-vconsole-setup
...
do not use console_init shell script, if systemd-vconsole-setup is
available
2011-05-03 14:49:44 +02:00
Harald Hoyer
aad6898fe4
10i18n: s/systemd-vconsole/systemd-vconsole-setup/g
2011-05-03 10:34:06 +02:00
Harald Hoyer
c99014d5ef
console_init/plymouth: use systemd-vconsole, if available
...
also init the console before starting the plymouth daemon
2011-05-03 09:59:14 +02:00