Debian Codegraph @

man/nm-initrd-generator.xml

raw
1 <?xml version='1.0'?>
2 <?xml-stylesheet type="text/xsl" href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"?>
3 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
4 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
5 <!ENTITY % entities SYSTEM "common.ent" >
6 %entities;
7 ]>
8
9 <!--
10 SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
11
12 nm-initrd-generator(8) manual page
13
14 Copyright 2018 Red Hat, Inc.
15 -->
16
17 <refentry id='nm-initrd-generator'>
18
19 <refentryinfo>
20 <title>nm-initrd-generator</title>
21 <author>NetworkManager developers</author>
22 </refentryinfo>
23
24 <refmeta>
25 <refentrytitle>nm-initrd-generator</refentrytitle>
26 <manvolnum>8</manvolnum>
27 <refmiscinfo class="source">NetworkManager</refmiscinfo>
28 <refmiscinfo class="manual">System Administration</refmiscinfo>
29 <refmiscinfo class="version">&NM_VERSION;</refmiscinfo>
30 </refmeta>
31
32 <refnamediv>
33 <refname>nm-initrd-generator</refname>
34 <refpurpose>early boot NetworkManager configuration generator</refpurpose>
35 </refnamediv>
36
37 <refsynopsisdiv id='synopsis'>
38 <cmdsynopsis>
39 <command>nm-initrd-generator</command>
40 <arg choice="opt" rep="repeat"><replaceable>OPTIONS</replaceable></arg>
41 <arg choice="plain">--</arg>
42 <arg choice="opt" rep="repeat"><replaceable>CMDLINE</replaceable></arg>
43 </cmdsynopsis>
44 </refsynopsisdiv>
45
46 <refsect1 id='description'><title>Description</title>
47 <para><command>nm-initrd-generator</command> scans the command line for options
48 relevant to network configuration and creates configuration files for an early
49 instance of NetworkManager run from the initial ramdisk during early boot.</para>
50 </refsect1>
51
52 <refsect1 id='options'><title>Options</title>
53 <variablelist>
54 <varlistentry>
55 <term>
56 <group choice='plain'>
57 <arg choice='plain'><option>-c</option></arg>
58 <arg choice='plain'><option>--connections-dir</option></arg>
59 </group>
60 <arg choice='plain'><replaceable>path</replaceable></arg>
61 </term>
62
63 <listitem>
64 <para>Output connection directory.</para>
65 </listitem>
66 </varlistentry>
67
68 <varlistentry>
69 <term>
70 <group choice='plain'>
71 <arg choice='plain'><option>-p</option></arg>
72 <arg choice='plain'><option>--persistent-connections-dir</option></arg>
73 </group>
74 <arg choice='plain'><replaceable>path</replaceable></arg>
75 </term>
76
77 <listitem>
78 <para>Persistent connection directory. If it exists, rd.neednet will not
79 cause a default connection to be generated in absence of other options.</para>
80 </listitem>
81 </varlistentry>
82
83 <varlistentry>
84 <term>
85 <group choice='plain'>
86 <arg choice='plain'><option>-i</option></arg>
87 <arg choice='plain'><option>--initrd-data-dir</option></arg>
88 </group>
89 <arg choice='plain'><replaceable>path</replaceable></arg>
90 </term>
91
92 <listitem>
93 <para>Output directory for initrd data (e.g. hostname).</para>
94 </listitem>
95 </varlistentry>
96
97 <varlistentry>
98 <term>
99 <group choice='plain'>
100 <arg choice='plain'><option>-d</option></arg>
101 <arg choice='plain'><option>--sysfs-dir</option></arg>
102 </group>
103 <arg choice='plain'><replaceable>path</replaceable></arg>
104 </term>
105
106 <listitem>
107 <para>The sysfs mount point.</para>
108 </listitem>
109 </varlistentry>
110
111 <varlistentry>
112 <term>
113 <group choice='plain'>
114 <arg choice='plain'><option>-r</option></arg>
115 <arg choice='plain'><option>--run-config-dir</option></arg>
116 </group>
117 <arg choice='plain'><replaceable>path</replaceable></arg>
118 </term>
119
120 <listitem>
121 <para>Output directory for config files.</para>
122 </listitem>
123 </varlistentry>
124
125 <varlistentry>
126 <term>
127 <group choice='plain'>
128 <arg choice='plain'><option>-s</option></arg>
129 <arg choice='plain'><option>--stdout</option></arg>
130 </group>
131 </term>
132
133 <listitem>
134 <para>Dump connections to standard output. Useful for debugging.</para>
135 </listitem>
136 </varlistentry>
137
138 <varlistentry>
139 <term><replaceable>CMDLINE</replaceable></term>
140
141 <listitem>
142 <para>The options that appear on the kernel command line. The following options are recognized:</para>
143
144 <simplelist>
145 <member><option>ip</option></member>
146 <member><option>rd.route</option></member>
147 <member><option>bridge</option></member>
148 <member><option>bond</option></member>
149 <member><option>team</option></member>
150 <member><option>vlan</option></member>
151 <member><option>ib.pkey</option></member>
152 <member><option>bootdev</option></member>
153 <member><option>nameserver</option></member>
154 <member><option>net.ifnames</option></member>
155 <member><option>rd.peerdns</option></member>
156 <member><option>rd.iscsi.ibft</option></member>
157 <member><option>rd.nvmf.nonbft</option></member>
158 <member><option>rd.bootif</option></member>
159 <member><option>rd.neednet</option></member>
160 <member><option>rd.ethtool</option></member>
161 <member><option>rd.net.dns</option></member>
162 <member><option>rd.net.dns-backend</option></member>
163 <member><option>rd.net.dns-resolve-mode</option></member>
164 <member><option>rd.net.timeout.dhcp</option></member>
165 <member><option>rd.net.dhcp.client-id</option></member>
166 <member><option>rd.net.dhcp.retry</option></member>
167 <member><option>rd.net.dhcp.vendor-class</option></member>
168 <member><option>rd.net.dhcp.dscp</option></member>
169 <member><option>rd.net.timeout.carrier</option></member>
170 <member><option>rd.znet</option></member>
171 <member><option>rd.znet_ifname</option></member>
172 <member><option>BOOTIF</option></member>
173 </simplelist>
174
175 <para>Please consult the <citerefentry><refentrytitle>dracut.cmdline</refentrytitle><manvolnum>7</manvolnum></citerefentry>
176 manual for the documentation of the precise format of the values supported.</para>
177 </listitem>
178 </varlistentry>
179 </variablelist>
180 </refsect1>
181
182 <refsect1 id='differences_from_network_legacy'><title>Differences from the network-legacy dracut module</title>
183
184 <para><command>nm-initrd-generator</command> generates a set of
185 connections that are then configured by the NetworkManager
186 instance running in the initrd. There are some differences in
187 behavior compared to the network-legacy dracut module:</para>
188
189 <itemizedlist>
190 <listitem>
191 <para>When an interface is configured with a static address
192 and a gateway, the network-legacy module waits that the
193 gateway responds to arping requests before proceeding, while
194 NetworkManager doesn't.</para>
195 </listitem>
196
197 <listitem>
198 <para>network-legacy configures interfaces one by one in the
199 order in which they are announced by udev. If multiple
200 interfaces specify a hostname (from command line or from
201 DHCP), the one from the last interface activated wins. With
202 NetworkManager, hostnames from command line have higher
203 precedence over ones from DHCP, and the last that appears in
204 the command line wins.</para>
205 </listitem>
206
207 <listitem>
208 <para>NetworkManager supports the
209 <option>ib.pkey</option>=<replaceable>PARENT</replaceable>.<replaceable>PKEY</replaceable>
210 argument to set up an Infiniband partition on IPoIB parent
211 device <replaceable>PARENT</replaceable> using the specified
212 partition key <replaceable>PKEY</replaceable>. The partition
213 key must be in hexadecimal notation without leading "0x", for
214 example "ib.pkey=ib0.8004".
215 </para>
216 </listitem>
217
218 <listitem>
219 <para>NetworkManager supports the
220 <option>rd.ethtool</option>=<replaceable>INTERFACE</replaceable>:<replaceable>AUTONEG</replaceable>:<replaceable>SPEED</replaceable>
221 kernel command line option to set up ethtool NIC configuration parameters
222 <replaceable>AUTONEG</replaceable> and <replaceable>SPEED</replaceable>.
223 The <replaceable>INTERFACE</replaceable> being configured must be
224 specified, and the other parameters are optional and can be left blank.
225 When <replaceable>SPEED</replaceable> is set, duplex mode is
226 automatically set to 'full'. <replaceable>INTERFACE</replaceable>
227 accepts string values, <replaceable>AUTONEG</replaceable> accepts
228 boolean values (true and false / on or off / 0 or 1), and
229 <replaceable>SPEED</replaceable> accepts positive integer values.
230 </para>
231 </listitem>
232
233 <listitem>
234 <para>NetworkManager supports the
235 <option>rd.net.dns-backend</option>=<replaceable>VALUE</replaceable>
236 kernel command line option to configure the DNS processing
237 mode. See the description of the <literal>"dns"</literal> key in
238 the <literal>"main section"</literal> paragraph of <link
239 linkend='NetworkManager.conf'><citerefentry><refentrytitle>NetworkManager.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry></link>. For
240 example: <literal>rd.net.dns-backend=systemd-resolved</literal>,
241 <literal>rd.net.dns-backend=dnsconfd</literal>
242 </para>
243 </listitem>
244
245 <listitem>
246 <para>NetworkManager supports the
247 <option>rd.net.dns</option>=<replaceable>SERVER</replaceable>
248 kernel command line option to configure a global (non
249 interface-specific) DNS server. The option can be specified
250 multiple time to add more than one server. Each server can be
251 specified as a plain IP or as an URI according to the
252 description in the "global-dns-domains sections" paragraph of
253 <link
254 linkend='NetworkManager.conf'><citerefentry><refentrytitle>NetworkManager.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry></link>. For
255 example: <literal>rd.net.dns=2001:db8::1</literal>,
256 <literal>rd.net.dns=dns+tls://192.0.2.0</literal>,
257 <literal>rd.net.dns=dns+tls://[2001:db8::2]:5353#example.org</literal>.
258 In addition, it supports configuring the <literal>"resolve-mode"</literal>
259 key in the global DNS configuration via the
260 <option>rd.net.dns-resolve-mode</option> command line option.
261 </para>
262 </listitem>
263
264 <listitem>
265 <para>NetworkManager supports the
266 <option>rd.net.dhcp.dscp</option>={<replaceable>CS0</replaceable>|<replaceable>CS4</replaceable>|<replaceable>CS6</replaceable>}
267 kernel command line option to set a specific DSCP (TOS) value
268 in the IP header of DHCP messages.
269 </para>
270 </listitem>
271
272 <listitem>
273 <para>NetworkManager supports the
274 <option>rd.net.dhcp.client-id</option>=<replaceable>interface</replaceable>:<replaceable>client-id</replaceable>
275 kernel command line option to set a specific DHCPv4 client identifier
276 for the given interface. The client-id can be specified either as a
277 sequence of bytes in hexadecimal format separated by dashes, or as the
278 character '@' followed by a non-empty string. When using the second
279 format, NetworkManager prepends a zero byte to the given string,
280 according to section 9.14 of RFC 2132. See the "ipv4.dhcp-client-id"
281 section of <link
282 linkend='nm-settings-nmcli'><citerefentry><refentrytitle>nm-settings-nmcli</refentrytitle><manvolnum>5</manvolnum></citerefentry></link>
283 for more details. Examples:
284 <literal>rd.net.dhcp.client-id=eth0:01-52-54-00-45-87-42</literal>,
285 <literal>rd.net.dhcp.client-id=enp1s0:@example.com</literal>.
286 </para>
287 </listitem>
288
289 </itemizedlist>
290 </refsect1>
291
292 <refsect1 id='exit_status'><title>Exit Status</title>
293 <para><command>nm-initrd-generator</command> exits with status 0. It ignores unrecognized
294 options and prints an error message if it encounters a malformed option.</para>
295 </refsect1>
296
297 <refsect1 id='see_also'><title>See Also</title>
298 <para><link linkend='dracut.cmdline'><citerefentry><refentrytitle>dracut.cmdline</refentrytitle><manvolnum>7</manvolnum></citerefentry></link>,
299 <link linkend='NetworkManager'><citerefentry><refentrytitle>NetworkManager</refentrytitle><manvolnum>8</manvolnum></citerefentry></link>,
300 <link linkend='nm-settings-nmcli'><citerefentry><refentrytitle>nm-settings-nmcli</refentrytitle><manvolnum>5</manvolnum></citerefentry></link>.</para>
301 </refsect1>
302 </refentry>