Debian Codegraph @

Initramfs/Dracut/README

raw
1 Braille Support for Dracut
2 ==========================
3
4 This module implements braille accessibility within the initramfs (initial
5 ramdisk file system). If BRLTTY is installed (``/usr/bin/brltty`` exists) then
6 it is added to the image. The braille drivers, text tables, contraction tables,
7 attributes tables, keyboard tables, speech drivers, and preferences file
8 configured via ``/etc/brltty.conf`` are included. Local customizations within
9 ``/etc/xdg/brltty/`` are also included.
10
11 BRLTTY is started as early as possible by the initramfs so that braille
12 accessibility will be active when (should the need arise) control is
13 transferred to the emergency shell due to a problem preparing the root file
14 system. Additionally, braille accessibility is active at any of the specifiable
15 initramfs breakpoints (see the ``rd.break`` kernel parameter) except for the
16 one named ``cmdline`` because it occurs earlier than the point at which BRLTTY
17 is started.
18
19 The braille driver can start immediately if either serial or USB communication
20 is being used. If Bluetooth communication is being used then the braille driver
21 won't start until the ``initqueue`` phase because the Systemd service manager
22 isn't available until then.
23
24 Bluetooth support within the initramfs is disabled by default because it's
25 insecure. The reason for this is that the link keys for those devices that have
26 already been paired on the full system are copied into the initramfs image so
27 that repairing won't be necessary. If you absolutely must use Bluetooth
28 communication, or if you just want to and this issue is of no concern to you,
29 then enable the ``BRLTTY_DRACUT_BLUETOOTH_SUPPORT`` option within the file
30 ``dracut.conf`` (which is in ``/etc/brltty/Initramfs/``).
31
32 Environment Variables
33 ---------------------
34
35 A number of environment variables may be used to influence how BRLTTY is
36 installed into the initramfs image. Their names all begin with the
37 ``BRLTTY_DRACUT_`` prefix. In addition to exporting them from the current
38 environment, they may be defined within the optional file ``dracut.conf``
39 (which is in ``/etc/brltty/Initramfs/``). Within this file:
40
41 * Blank lines are ignored.
42 * Lines that start with a hash [``#``] are comments.
43 * All other lines should be simple shell-style assignments. For example::
44
45 NAME="string"
46
47 The following environment variables are supported:
48
49 BRLTTY_DRACUT_LOCALE
50 The preferred locale (used to determine the default text and contraction
51 tables). For example::
52
53 BRLTTY_DRACUT_LOCALE=cs_CZ.UTF-8
54
55 If needed, i.e. if the text and contraction tables haven't both been
56 configured via ``/etc/brltty.conf``, this information must be explicitly set
57 because it can't be determined from the system configuration when building
58 the image (see `<https://bugzilla.redhat.com/show_bug.cgi?id=1584036>`_).
59
60 BRLTTY_DRACUT_BRAILLE_DRIVERS
61 A space-separated list of additional braille drivers to include. For
62 example::
63
64 BRLTTY_DRACUT_BRAILLE_DRIVERS="pm eu"
65
66 BRLTTY_DRACUT_BLUETOOTH_SUPPORT
67 Whether or not Bluetooth support should be included within the initramfs. For
68 example::
69
70 BRLTTY_DRACUT_BLUETOOTH_SUPPORT=no
71
72 Set this variable to ``yes`` if communication with your braille device is via
73 Bluetooth. Note that this option is insecure because the link keys for all of
74 your paired Bluetooth devices will be stored within the initramfs image.
75
76 BRLTTY_DRACUT_TEXT_TABLES
77 A space-separated list of additional text tables to include. For example::
78
79 BRLTTY_DRACUT_TEXT_TABLES="de fr"
80
81 BRLTTY_DRACUT_CONTRACTION_TABLES
82 A space-separated list of additional contraction tables to include. For
83 example::
84
85 BRLTTY_DRACUT_CONTRACTION_TABLES="de-g2 fr-g2"
86
87 BRLTTY_DRACUT_ATTRIBUTES_TABLES
88 A space-separated list of additional attributes tables to include. For
89 example::
90
91 BRLTTY_DRACUT_ATTRIBUTES_TABLES="upper_lower left_right"
92
93 BRLTTY_DRACUT_KEYBOARD_TABLES
94 A space-separated list of additional keyboard tables to include. For
95 example::
96
97 BRLTTY_DRACUT_KEYBOARD_TABLES="keypad desktop"
98
99 BRLTTY_DRACUT_SPEECH_DRIVERS
100 A space-separated list of additional speech drivers to include. For example::
101
102 BRLTTY_DRACUT_SPEECH_DRIVERS="es fl"
103
104 Kernel Command Line Parameters
105 ------------------------------
106
107 This module interprets kernel command line parameters that begin with the
108 ``rd.brltty.`` prefix. Explicit values for these parameters can, of course, be
109 specified on the kernel command line (e.g. within ``grub.cfg`` or within
110 ``/etc/default/grub``). In addition, default values for them can be defined
111 within the optional file ``cmdline`` (which is in ``/etc/brltty/Initramfs/``).
112
113 The order of precedence, from lowest to highest, for a value is:
114
115 * BRLTTY built-in default
116 * ``/etc/brltty.conf``
117 * initramfs override
118 * ``/etc/brltty/Initramfs/cmdline``
119 * kernel command line
120
121 Blank lines are ignored. A hash [``#``] anywhere on a line begins a comment
122 which continues till the end of that line - only those characters before it are
123 significant. Any number of space-separated options may be specified on a line.
124 The syntax for an option is ``name=value`` (without the ``rd.brltty.`` prefix).
125 The ``=value`` part is optional - if there's no ``=`` then the value is
126 ``yes``.
127
128 Disabling BRLTTY
129 ````````````````
130
131 Given that BRLTTY is a rather complex application, there are a number of kernel
132 parameters that can be used to selectively disable a number of its components.
133 In all cases, if any of these parameters isn't specified then it defaults to
134 ``1`` (enabled). They are:
135
136 ========================= =========================================
137 Kernel Parameter Effect
138 ------------------------- -----------------------------------------
139 ``rd.brltty=0`` Completely disable BRLTTY.
140 ``rd.brltty.bluetooth=0`` Disable Bluetooth support.
141 ``rd.brltty.sound=0`` Disable speech drivers and sound support.
142 ``rd.brltty.pulse=0`` Disable the Pulse Audio server.
143 ``rd.brltty.speechd=0`` Disable the Speech Dispatcher server.
144 ========================= =========================================
145
146 Specifying BRLTTY options
147 `````````````````````````
148
149 All of BRLTTY's options that can be specified via environment variables (see
150 ``man brltty`` for the full list) can be specified via kernel parameters. For
151 example, the kernel parameter ``rd.brltty.braille_driver=vo`` is mapped to the
152 environment variable assignment ``BRLTTY_BRAILLE_DRIVER=vo``. Some of the more
153 interesting ones are:
154
155 ================================ ===============================
156 Kernel Parameter Default Value
157 -------------------------------- -------------------------------
158 ``rd.brltty.braille_driver`` setting in ``/etc/brltty.conf``
159 ``rd.brltty.braille_parameters`` setting in ``/etc/brltty.conf``
160 ``rd.brltty.braille_device`` setting in ``/etc/brltty.conf``
161 ``rd.brltty.text_table`` setting in ``/etc/brltty.conf``
162 ``rd.brltty.attributes_table`` setting in ``/etc/brltty.conf``
163 ``rd.brltty.contraction_table`` setting in ``/etc/brltty.conf``
164 ``rd.brltty.keyboard_table`` setting in ``/etc/brltty.conf``
165 ``rd.brltty.speech_driver`` setting in ``/etc/brltty.conf``
166 ``rd.brltty.speech_parameters`` setting in ``/etc/brltty.conf``
167 ``rd.brltty.log_file`` ``/run/initramfs/brltty.log``
168 ``rd.brltty.log_level`` setting in ``/etc/brltty.conf``
169 ================================ ===============================
170
171 Speech Drivers
172 --------------
173
174 Since speech drivers, by their very nature, require sound:
175
176 * None of them can start until the ``initqueue`` hook has been executed.
177
178 * None of them can start if sound has been disabled (via the rd.brltty.sound=0
179 kernel parameter).
180
181 Speech defaults to being off even if a speech driver has been configured via
182 ``/etc/brltty.conf``. This is because your preferred speech driver may not work
183 all that well, or may even cause problems, when used within the more primitive
184 initramfs environment. If you'd like to use speech then you need to explicitly
185 set the driver. While you can do so via the ``rd.brltty.speech_driver`` kernel
186 command line parameter, the easiest way to configure a persistent setting is
187 via the ``speech_driver`` option in ``/etc/brltty/Initramfs/cmdline``.
188
189 Here's how well each of the speech drivers works:
190
191 en
192 The ``en`` [eSpeak-NG] speech driver works.
193
194 es
195 The ``es`` [eSpeak] speech driver works. It requires Pulse Audio, so:
196
197 * It doesn't start until the ``initqueue`` hook has been executed.
198
199 * It can't start if Pulse Audio fails to start or has been disabled (via
200 the rd.brltty.pulse=0 kernel parameter).
201
202 fl
203 The ``fl`` [Festival Lite] speech driver doesn't work - it runs but doesn't
204 speak. This appears to be due to a bug within Festival Lite itself because
205 it also remains silent when tested on the full system.
206
207 fv
208 The ``fv`` [Festival] speech driver doesn't work - it crashes. This appears
209 to be due to a bug within Festival itself because it also crashes when tested
210 on the full system.
211
212 sd
213 The ``sd`` [Speech Dispatcher] speech driver hasn't been tested and probably
214 won't work.
215