1KERNEL-COMMAND-LINE(7)        kernel-command-line       KERNEL-COMMAND-LINE(7)
2
3
4

NAME

6       kernel-command-line - Kernel command line parameters
7

SYNOPSIS

9       /proc/cmdline
10

DESCRIPTION

12       The kernel, the initial RAM disk (initrd) and basic userspace
13       functionality may be configured at boot via kernel command line
14       arguments. In addition, various systemd tools look at the EFI variable
15       "SystemdOptions" (if available). Both sources are combined, but the
16       kernel command line has higher priority. Please note that the EFI
17       variable is only used by systemd tools, and is ignored by the kernel
18       and other user space tools, so it is not a replacement for the kernel
19       command line.
20
21       For command line parameters understood by the kernel, please see
22       kernel-parameters.html[1] and bootparam(7).
23
24       For command line parameters understood by the initial RAM disk, please
25       see dracut.cmdline(7), or the documentation of the specific initrd
26       implementation of your installation.
27

CORE OS COMMAND LINE ARGUMENTS

29       systemd.unit=, rd.systemd.unit=, systemd.dump_core,
30       systemd.early_core_pattern=, systemd.crash_chvt, systemd.crash_shell,
31       systemd.crash_reboot, systemd.confirm_spawn, systemd.service_watchdogs,
32       systemd.show_status, systemd.status_unit_format=, systemd.log_target=,
33       systemd.log_level=, systemd.log_location=, systemd.log_color,
34       systemd.default_standard_output=, systemd.default_standard_error=,
35       systemd.setenv=, systemd.machine_id=, systemd.unified_cgroup_hierarchy,
36       systemd.legacy_systemd_cgroup_controller
37           Parameters understood by the system and service manager to control
38           system behavior. For details, see systemd(1).
39
40       systemd.mask=, systemd.wants=, systemd.debug_shell
41           Additional parameters understood by systemd-debug-generator(8), to
42           mask or start specific units at boot, or invoke a debug shell on
43           tty9.
44
45       systemd.run=, systemd.run_success_action=, systemd.run_failure_action=
46           Additional parameters understood by systemd-run-generator(8), to
47           run a command line specified on the kernel command line as system
48           service after booting up.
49
50       systemd.early_core_pattern=
51           During early boot, the generation of core dump files is disabled
52           until a core dump handler (if any) takes over. This parameter
53           allows specifying an absolute path where core dump files should be
54           stored until a handler is installed. The path should be absolute
55           and may contain specifiers, see core(5) for details.
56
57       systemd.restore_state=
58           This parameter is understood by several system tools to control
59           whether or not they should restore system state from the previous
60           boot. For details, see systemd-backlight@.service(8) and systemd-
61           rfkill.service(8).
62
63       systemd.volatile=
64           This parameter controls whether the system shall boot up in
65           volatile mode. Takes a boolean argument, or the special value
66           "state". If false (the default), normal boot mode is selected, the
67           root directory and /var/ are mounted as specified on the kernel
68           command line or /etc/fstab, or otherwise configured. If true, full
69           state-less boot mode is selected. In this case the root directory
70           is mounted as volatile memory file system ("tmpfs"), and only /usr/
71           is mounted from the file system configured as root device, in
72           read-only mode. This enables fully state-less boots were the
73           vendor-supplied OS is used as shipped, with only default
74           configuration and no stored state in effect, as /etc/ and /var/ (as
75           well as all other resources shipped in the root file system) are
76           reset at boot and lost on shutdown. If this setting is set to
77           "state" the root file system is mounted read-only, however /var/ is
78           mounted as a volatile memory file system ("tmpfs"), so that the
79           system boots up with the normal configuration applied, but all
80           state reset at boot and lost at shutdown. If this setting is set to
81           "overlay" the root file system is set up as "overlayfs" mount
82           combining the read-only root directory with a writable "tmpfs", so
83           that no modifications are made to disk, but the file system may be
84           modified nonetheless with all changes being lost at reboot. For
85           details, see systemd-volatile-root.service(8) and systemd-fstab-
86           generator(8).
87
88       quiet
89           Parameter understood by both the kernel and the system and service
90           manager to control console log verbosity. For details, see
91           systemd(1).
92
93       debug
94           Parameter understood by both the kernel and the system and service
95           manager to control console log verbosity. For details, see
96           systemd(1).
97
98       -b, rd.emergency, emergency, rd.rescue, rescue, single, s, S, 1, 2, 3,
99       4, 5
100           Parameters understood by the system and service manager, as
101           compatibility and convenience options. For details, see systemd(1).
102
103       locale.LANG=, locale.LANGUAGE=, locale.LC_CTYPE=, locale.LC_NUMERIC=,
104       locale.LC_TIME=, locale.LC_COLLATE=, locale.LC_MONETARY=,
105       locale.LC_MESSAGES=, locale.LC_PAPER=, locale.LC_NAME=,
106       locale.LC_ADDRESS=, locale.LC_TELEPHONE=, locale.LC_MEASUREMENT=,
107       locale.LC_IDENTIFICATION=
108           Parameters understood by the system and service manager to control
109           locale and language settings. For details, see systemd(1).
110
111       fsck.mode=, fsck.repair=
112           Parameters understood by the file system checker services. For
113           details, see systemd-fsck@.service(8).
114
115       quotacheck.mode=
116           Parameter understood by the file quota checker service. For
117           details, see systemd-quotacheck.service(8).
118
119       systemd.journald.forward_to_syslog=, systemd.journald.forward_to_kmsg=,
120       systemd.journald.forward_to_console=, systemd.journald.forward_to_wall=
121           Parameters understood by the journal service. For details, see
122           systemd-journald.service(8).
123
124       vconsole.keymap=, vconsole.keymap_toggle=, vconsole.font=,
125       vconsole.font_map=, vconsole.font_unimap=
126           Parameters understood by the virtual console setup logic. For
127           details, see vconsole.conf(5).
128
129       udev.log_level=, rd.udev.log_level=, udev.children_max=,
130       rd.udev.children_max=, udev.exec_delay=, rd.udev.exec_delay=,
131       udev.event_timeout=, rd.udev.event_timeout=, udev.timeout_signal=,
132       rd.udev.timeout_signal=, udev.blockdev_read_only,
133       rd.udev.blockdev_read_only, net.ifnames=, net.naming-scheme=
134           Parameters understood by the device event managing daemon. For
135           details, see systemd-udevd.service(8).
136
137       plymouth.enable=
138           May be used to disable the Plymouth boot splash. For details, see
139           plymouth(8).
140
141       luks=, rd.luks=, luks.crypttab=, rd.luks.crypttab=, luks.name=,
142       rd.luks.name=, luks.uuid=, rd.luks.uuid=, luks.options=,
143       rd.luks.options=, luks.key=, rd.luks.key=
144           Configures the LUKS full-disk encryption logic at boot. For
145           details, see systemd-cryptsetup-generator(8).
146
147       fstab=, rd.fstab=
148           Configures the /etc/fstab logic at boot. For details, see systemd-
149           fstab-generator(8).
150
151       root=, rootfstype=, rootflags=, ro, rw
152           Configures the root file system and its file system type and mount
153           options, as well as whether it shall be mounted read-only or
154           read-write initially. For details, see systemd-fstab-generator(8).
155
156       mount.usr=, mount.usrfstype=, mount.usrflags=
157           Configures the /usr file system (if required) and its file system
158           type and mount options. For details, see systemd-fstab-
159           generator(8).
160
161       veritytab=, rd.veritytab=, roothash=, systemd.verity=,
162       rd.systemd.verity=, systemd.verity_root_data=,
163       systemd.verity_root_hash=, systemd.verity.root_options=, usrhash=,
164       systemd.verity_usr_data=, systemd.verity_usr_hash=,
165       systemd.verity_usr_options=
166           Configures the integrity protection root hash for the root and /usr
167           file systems, and other related parameters. For details, see
168           systemd-veritysetup-generator(8).
169
170       systemd.getty_auto=
171           Configures whether the serial-getty@.service will run. For details,
172           see systemd-getty-generator(8).
173
174       systemd.gpt_auto=, rd.systemd.gpt_auto=
175           Configures whether GPT based partition auto-discovery shall be
176           attempted. For details, see systemd-gpt-auto-generator(8).
177
178       systemd.default_timeout_start_sec=
179           Overrides the default start job timeout DefaultTimeoutStartSec= at
180           boot. For details, see systemd-system.conf(5).
181
182       systemd.watchdog_device=
183           Overrides the watchdog device path WatchdogDevice=. For details,
184           see systemd-system.conf(5).
185
186       systemd.watchdog_sec=
187           Overrides the watchdog timeout settings otherwise configured with
188           RuntimeWatchdog=, RebootWatchdog= and KExecWatchdogSec=. Takes a
189           time value (if no unit is specified, seconds is the implicitly
190           assumed time unit) or the special strings "off" or "default". For
191           details, see systemd-system.conf(5).
192
193       systemd.cpu_affinity=
194           Overrides the CPU affinity mask for the service manager and the
195           default for all child processes it forks. This takes precedence
196           over CPUAffinity=, see systemd-system.conf(5) for details.
197
198       modules_load=, rd.modules_load=
199           Load a specific kernel module early at boot. For details, see
200           systemd-modules-load.service(8).
201
202       resume=, resumeflags=
203           Enables resume from hibernation using the specified device and
204           mount options. All fstab(5)-like paths are supported. For details,
205           see systemd-hibernate-resume-generator(8).
206
207       systemd.firstboot=
208           Takes a boolean argument, defaults to on. If off, systemd-
209           firstboot.service(8) will not query the user for basic system
210           settings, even if the system boots up for the first time and the
211           relevant settings are not initialized yet. Not to be confused with
212           systemd.condition-first-boot= (see below), which overrides the
213           result of the ConditionFirstBoot= unit file condition, and thus
214           controls more than just systemd-firstboot.service behaviour.
215
216       systemd.condition-needs-update=
217           Takes a boolean argument. If specified, overrides the result of
218           ConditionNeedsUpdate= unit condition checks. See systemd.unit(5)
219           for details.
220
221       systemd.condition-first-boot=
222           Takes a boolean argument. If specified, overrides the result of
223           ConditionFirstBoot= unit condition checks. See systemd.unit(5) for
224           details. Not to be confused with systemd.firstboot= which only
225           controls behaviour of the systemd-firstboot.service system service
226           but has no effect on the condition check (see above).
227
228       systemd.clock-usec=
229           Takes a decimal, numeric timestamp in µs since January 1st 1970,
230           00:00am, to set the system clock to. The system time is set to the
231           specified timestamp early during boot. It is not propagated to the
232           hardware clock (RTC).
233
234       systemd.random-seed=
235           Takes a base64 encoded random seed value to credit with full
236           entropy to the kernel's random pool during early service manager
237           initialization. This option is useful in testing environments where
238           delays due to random pool initialization in entropy starved virtual
239           machines shall be avoided.
240
241           Note that if this option is used the seed is accessible to
242           unprivileged programs from /proc/cmdline. This option is hence a
243           security risk when used outside of test systems, since the
244           (possibly) only seed used for initialization of the kernel's
245           entropy pool might be easily acquired by unprivileged programs.
246
247           It is recommended to pass 512 bytes of randomized data (as that
248           matches the Linux kernel pool size), which may be generated with a
249           command like the following:
250
251               dd if=/dev/urandom bs=512 count=1 status=none | base64 -w 0
252
253           Again: do not use this option outside of testing environments, it's
254           a security risk elsewhere, as secret key material derived from the
255           entropy pool can possibly be reconstructed by unprivileged
256           programs.
257
258       systemd.hostname=
259           Accepts a hostname to set during early boot. If specified takes
260           precedence over what is set in /etc/hostname. Note that this does
261           not bar later runtime changes to the hostname, it simply controls
262           the initial hostname set during early boot.
263

SEE ALSO

265       systemd(1), systemd-system.conf(5), bootparam(7), dracut.cmdline(7),
266       systemd-debug-generator(8), systemd-fsck@.service(8), systemd-
267       quotacheck.service(8), systemd-journald.service(8), systemd-vconsole-
268       setup.service(8), systemd-udevd.service(8), plymouth(8), systemd-
269       cryptsetup-generator(8), systemd-veritysetup-generator(8), systemd-
270       fstab-generator(8), systemd-getty-generator(8), systemd-gpt-auto-
271       generator(8), systemd-volatile-root.service(8), systemd-modules-
272       load.service(8), systemd-backlight@.service(8), systemd-
273       rfkill.service(8), systemd-hibernate-resume-generator(8), systemd-
274       firstboot.service(8), bootctl(1)
275

NOTES

277        1. kernel-parameters.html
278           https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html
279
280
281
282systemd 250                                             KERNEL-COMMAND-LINE(7)
Impressum