man > kernel-command-line(7)

๐Ÿ“› NAME

kernel-command-line - Kernel command line parameters

๐Ÿš€ Quick Reference

Use CaseCommandDescription
๐Ÿ› ๏ธ Set systemd target unitsystemd.unit=Override default target unit
๐ŸŽญ Mask a unit at bootsystemd.mask=Prevent a unit from starting
๐Ÿƒ Run a command as a servicesystemd.run=Execute a command after boot
๐Ÿ’จ Boot in volatile mode (stateless)systemd.volatile=yesReset root & /var at each boot
๐Ÿ’จ Boot in volatile state mode (keep /etc)systemd.volatile=stateMount /var as tmpfs, root ro
๐Ÿ’จ Boot with overlayfssystemd.volatile=overlayWritable tmpfs overlay on root
๐Ÿ› Enable debug loggingdebugIncrease console verbosity
๐Ÿ”‡ Suppress boot messagesquietDecrease console verbosity
๐Ÿ†˜ Boot into emergency modeemergencyMinimal rescue shell
๐Ÿ†˜ Boot into singleโ€‘user modesingle or 1Singleโ€‘user maintenance mode
๐Ÿท๏ธ Set hostname at bootsystemd.hostname=Override /etc/hostname
๐Ÿ†• Disable firstโ€‘boot promptssystemd.firstboot=0Skip systemdโ€‘firstboot
๐Ÿ–ฅ๏ธ Disable Plymouth splashplymouth.enable=0Boot without graphical splash
๐Ÿ” Set LUKS passphraseluks.key=Provide key file for encrypted volume
๐Ÿ“ฆ Load kernel module earlymodules_load=Load a module before other services
๐Ÿ’ค Resume from hibernationresume=Specify swap device for resume
๐ŸŒฑ Set root filesystemroot=Specify root device
๐Ÿ”’ Mount root readโ€‘onlyroMount root filesystem readโ€‘only
๐Ÿ”“ Mount root readโ€‘writerwMount root filesystem readโ€‘write
๐ŸŒฑ Specify root filesystem typerootfstype=e.g., ext4, xfs
๐Ÿ›ก๏ธ Set up integrity protectionroothash=Root hash for dmโ€‘verity
๐Ÿง  Override CPU affinitysystemd.cpu_affinity=Set CPU mask for PID 1
๐Ÿ• Set watchdog devicesystemd.watchdog_device=Path to watchdog device
๐ŸŒ Set localelocale.LANG=Set system language
๐Ÿ“ฐ Forward journal to syslogsystemd.journald.forward_to_syslog=1Enable journalโ†’syslog
โŒจ๏ธ Set virtual console keymapvconsole.keymap=Specify keyboard layout
๐Ÿ–ด Disable GPT autoโ€‘discoverysystemd.gpt_auto=0Prevent partition autoโ€‘mounting
๐Ÿ‘ถ Override firstโ€‘boot conditionsystemd.condition-first-boot=Force ConditionFirstBoot result
๐Ÿ•ฐ๏ธ Set system clock at bootsystemd.clock-usec=ยตs timestamp since epoch
๐ŸŽฒ Inject random seed (testing)systemd.random-seed=Base64 encoded seed (โš ๏ธ security risk)

๐Ÿ“œ SYNOPSIS

/proc/cmdline

๐Ÿ“– DESCRIPTION

๐Ÿง  The kernel, the initial RAM disk (initrd) and basic userspace functionality may be configured at boot via kernel command line arguments. In addition, various systemd tools look at the EFI variable "SystemdOptions" (if available). Both sources are combined, but the kernel command line has higher priority. Please note that the EFI variable is only used by systemd tools, and is ignored by the kernel and other user space tools, so it is not a replacement for the kernel command line.

For command line parameters understood by the kernel, please see kernel-parameters.html[1] and bootparam(7).

For command line parameters understood by the initial RAM disk, please see dracut.cmdline(7), or the documentation of the specific initrd implementation of your installation.

โš™๏ธ CORE OS COMMAND LINE ARGUMENTS

systemd.unit=, rd.systemd.unit=, systemd.dump_core, systemd.early_core_pattern=, systemd.crash_chvt, systemd.crash_shell, systemd.crash_reboot, systemd.confirm_spawn, systemd.service_watchdogs, systemd.show_status, systemd.status_unit_format=, systemd.log_target=, systemd.log_level=, systemd.log_location=, systemd.log_color, systemd.default_standard_output=, systemd.default_standard_error=, systemd.setenv=, systemd.machine_id=, systemd.unified_cgroup_hierarchy, systemd.legacy_systemd_cgroup_controller ๐Ÿ› ๏ธ Parameters understood by the system and service manager to control system behavior. For details, see systemd(1).

systemd.mask=, systemd.wants=, systemd.debug_shell ๐ŸŽญ Additional parameters understood by systemd-debug-generator(8), to mask or start specific units at boot, or invoke a debug shell on tty9.

systemd.run=, systemd.run_success_action=, systemd.run_failure_action= ๐Ÿƒ Additional parameters understood by systemd-run-generator(8), to run a command line specified on the kernel command line as system service after booting up.

systemd.early_core_pattern= ๐Ÿ’ฅ During early boot, the generation of core dump files is disabled until a core dump handler (if any) takes over. This parameter allows specifying an absolute path where core dump files should be stored until a handler is installed. The path should be absolute and may contain specifiers, see core(5) for details.

systemd.restore_state= ๐Ÿ”„ This parameter is understood by several system tools to control whether or not they should restore system state from the previous boot. For details, see systemd-backlight@.service(8) and systemd-rfkill.service(8).

systemd.volatile= ๐Ÿ’จ This parameter controls whether the system shall boot up in volatile mode. Takes a boolean argument, or the special value "state". If false (the default), normal boot mode is selected, the root directory and /var/ are mounted as specified on the kernel command line or /etc/fstab, or otherwise configured. If true, full state-less boot mode is selected. In this case the root directory is mounted as volatile memory file system ("tmpfs"), and only /usr/ is mounted from the file system configured as root device, in read-only mode. This enables fully state-less boots were the vendor-supplied OS is used as shipped, with only default configuration and no stored state in effect, as /etc/ and /var/ (as well as all other resources shipped in the root file system) are reset at boot and lost on shutdown. If this setting is set to "state" the root file system is mounted read-only, however /var/ is mounted as a volatile memory file system ("tmpfs"), so that the system boots up with the normal configuration applied, but all state reset at boot and lost at shutdown. If this setting is set to "overlay" the root file system is set up as "overlayfs" mount combining the read-only root directory with a writable "tmpfs", so that no modifications are made to disk, but the file system may be modified nonetheless with all changes being lost at reboot. For details, see systemd-volatile-root.service(8) and systemd-fstab-generator(8).

quiet ๐Ÿ”‡ Parameter understood by both the kernel and the system and service manager to control console log verbosity. For details, see systemd(1).

debug ๐Ÿ› Parameter understood by both the kernel and the system and service manager to control console log verbosity. For details, see systemd(1).

-b, rd.emergency, emergency, rd.rescue, rescue, single, s, S, 1, 2, 3, 4, 5 ๐Ÿ†˜ Parameters understood by the system and service manager, as compatibility and convenience options. For details, see systemd(1).

locale.LANG=, locale.LANGUAGE=, locale.LC_CTYPE=, locale.LC_NUMERIC=, locale.LC_TIME=, locale.LC_COLLATE=, locale.LC_MONETARY=, locale.LC_MESSAGES=, locale.LC_PAPER=, locale.LC_NAME=, locale.LC_ADDRESS=, locale.LC_TELEPHONE=, locale.LC_MEASUREMENT=, locale.LC_IDENTIFICATION= ๐ŸŒ Parameters understood by the system and service manager to control locale and language settings. For details, see systemd(1).

fsck.mode=, fsck.repair= ๐Ÿฉบ Parameters understood by the file system checker services. For details, see systemd-fsck@.service(8).

quotacheck.mode= ๐Ÿ“Š Parameter understood by the file quota checker service. For details, see systemd- quotacheck.service(8).

systemd.journald.forward_to_syslog=, systemd.journald.forward_to_kmsg=, systemd.journald.forward_to_console=, systemd.journald.forward_to_wall= ๐Ÿ“ฐ Parameters understood by the journal service. For details, see systemd- journald.service(8).

vconsole.keymap=, vconsole.keymap_toggle=, vconsole.font=, vconsole.font_map=, vconsole.font_unimap= โŒจ๏ธ Parameters understood by the virtual console setup logic. For details, see vconsole.conf(5).

udev.log_level=, rd.udev.log_level=, udev.children_max=, rd.udev.children_max=, udev.exec_delay=, rd.udev.exec_delay=, udev.event_timeout=, rd.udev.event_timeout=, udev.timeout_signal=, rd.udev.timeout_signal=, udev.blockdev_read_only, rd.udev.blockdev_read_only, net.ifnames=, net.naming-scheme= ๐Ÿ”Œ Parameters understood by the device event managing daemon. For details, see systemd- udevd.service(8).

plymouth.enable= ๐Ÿ–ฅ๏ธ May be used to disable the Plymouth boot splash. For details, see plymouth(8).

luks=, rd.luks=, luks.crypttab=, rd.luks.crypttab=, luks.name=, rd.luks.name=, luks.uuid=, rd.luks.uuid=, luks.options=, rd.luks.options=, luks.key=, rd.luks.key= ๐Ÿ” Configures the LUKS full-disk encryption logic at boot. For details, see systemd- cryptsetup-generator(8).

fstab=, rd.fstab= ๐Ÿ“ Configures the /etc/fstab logic at boot. For details, see systemd-fstab-generator(8).

root=, rootfstype=, rootflags=, ro, rw ๐ŸŒฑ Configures the root file system and its file system type and mount options, as well as whether it shall be mounted read-only or read-write initially. For details, see systemd- fstab-generator(8).

mount.usr=, mount.usrfstype=, mount.usrflags= ๐Ÿ“ฆ Configures the /usr file system (if required) and its file system type and mount options. For details, see systemd-fstab-generator(8).

veritytab=, rd.veritytab=, roothash=, systemd.verity=, rd.systemd.verity=, systemd.verity_root_data=, systemd.verity_root_hash=, systemd.verity.root_options= ๐Ÿ›ก๏ธ Configures the integrity protection root hash for the root file system, and other related parameters. For details, see systemd-veritysetup-generator(8).

systemd.gpt_auto=, rd.systemd.gpt_auto= ๐Ÿ–ด Configures whether GPT based partition auto-discovery shall be attempted. For details, see systemd-gpt-auto-generator(8).

systemd.default_timeout_start_sec= โฑ๏ธ Overwrites the default start job timeout DefaultTimeoutStartSec= at boot. For details, see systemd-system.conf(5).

systemd.watchdog_device= ๐Ÿ• Overwrites the watchdog device path WatchdogDevice=. For details, see systemd- system.conf(5).

systemd.cpu_affinity= ๐Ÿง  Overrides the CPU affinity mask for the service manager and the default for all child processes it forks. This takes precedence over CPUAffinity=, see systemd-system.conf(5) for details.

modules_load=, rd.modules_load= ๐Ÿ“ฆ Load a specific kernel module early at boot. For details, see systemd-modules- load.service(8).

resume=, resumeflags= ๐Ÿ’ค Enables resume from hibernation using the specified device and mount options. All fstab(5)-like paths are supported. For details, see systemd-hibernate-resume- generator(8).

systemd.firstboot= ๐Ÿ†• Takes a boolean argument, defaults to on. If off, systemd-firstboot.service(8) will not query the user for basic system settings, even if the system boots up for the first time and the relevant settings are not initialized yet. Not to be confused with systemd.condition-first-boot= (see below), which overrides the result of the ConditionFirstBoot= unit file condition, and thus controls more than just systemd-firstboot.service behaviour.

systemd.condition-needs-update= ๐Ÿ”„ Takes a boolean argument. If specified, overrides the result of ConditionNeedsUpdate= unit condition checks. See systemd.unit(5) for details.

systemd.condition-first-boot= ๐Ÿ‘ถ Takes a boolean argument. If specified, overrides the result of ConditionFirstBoot= unit condition checks. See systemd.unit(5) for details. Not to be confused with systemd.firstboot= which only controls behaviour of the systemd-firstboot.service system service but has no effect on the condition check (see above).

systemd.clock-usec= ๐Ÿ•ฐ๏ธ Takes a decimal, numeric timestamp in ยตs since January 1st 1970, 00:00am, to set the system clock to. The system time is set to the specified timestamp early during boot. It is not propagated to the hardware clock (RTC).

systemd.random-seed= ๐ŸŽฒ Takes a base64 encoded random seed value to credit with full entropy to the kernel's random pool during early service manager initialization. This option is useful in testing environments where delays due to random pool initialization in entropy starved virtual machines shall be avoided.

โš ๏ธ Note that if this option is used the seed is accessible to unprivileged programs from /proc/cmdline. This option is hence a security risk when used outside of test systems, since the (possibly) only seed used for initialization of the kernel's entropy pool might be easily acquired by unprivileged programs.

It is recommended to pass 512 bytes of randomized data (as that matches the Linux kernel pool size), which may be generated with a command like the following:

dd if=/dev/urandom bs=512 count=1 status=none | base64 -w 0

Again: do not use this option outside of testing environments, it's a security risk elsewhere, as secret key material derived from the entropy pool can possibly be reconstructed by unprivileged programs.

systemd.hostname= ๐Ÿท๏ธ Accepts a hostname to set during early boot. If specified takes precedence over what is set in /etc/hostname. Note that this does not bar later runtime changes to the hostname, it simply controls the initial hostname set during early boot.

๐Ÿ“š SEE ALSO

๐Ÿ› ๏ธ systemd(1), ๐Ÿ“‹ systemd-system.conf(5), ๐Ÿง bootparam(7), ๐Ÿš€ dracut.cmdline(7), ๐ŸŽญ systemd-debug- generator(8), ๐Ÿฉบ systemd-fsck@.service(8), ๐Ÿ“Š systemd-quotacheck.service(8), ๐Ÿ“ฐ systemd- journald.service(8), โŒจ๏ธ systemd-vconsole-setup.service(8), ๐Ÿ”Œ systemd-udevd.service(8), ๐Ÿ–ฅ๏ธ plymouth(8), ๐Ÿ” systemd-cryptsetup-generator(8), ๐Ÿ›ก๏ธ systemd-veritysetup-generator(8), ๐Ÿ“ systemd- fstab-generator(8), ๐Ÿ–ด systemd-gpt-auto-generator(8), ๐Ÿ’จ systemd-volatile-root.service(8), ๐Ÿ“ฆ systemd- modules-load.service(8), ๐Ÿ”„ systemd-backlight@.service(8), ๐Ÿ”„ systemd-rfkill.service(8), ๐Ÿ’ค systemd- hibernate-resume-generator(8), ๐Ÿ†• systemd-firstboot.service(8), ๐Ÿ–ด bootctl(1)

๐Ÿ“ NOTES

1. kernel-parameters.html https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html

kernel-command-line(7)
๐Ÿ“› NAME ๐Ÿš€ Quick Reference ๐Ÿ“œ SYNOPSIS ๐Ÿ“– DESCRIPTION โš™๏ธ CORE OS COMMAND LINE ARGUMENTS ๐Ÿ“š SEE ALSO ๐Ÿ“ NOTES

Generated by phpman v4.9.27 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-18 20:12 @2600:1f28:365:80b0:b91e:58eb:6587:15c8
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format

^_top_^