nerdexam
CompTIA

LX0-103 · Question #136

Which of the following options for the kernel's command line changes the systemd boot target to rescue.target instead of the default target?

The correct answer is E. systemd.unit=rescue.target. The systemd.unit= kernel command line parameter overrides the default systemd target, allowing the administrator to boot directly into rescue.target.

System Architecture

Question

Which of the following options for the kernel's command line changes the systemd boot target to rescue.target instead of the default target?

Options

  • Asystemd.target=rescue.target
  • Bsystemd.runlevel=rescue.target
  • Csystemd.service=rescue.target
  • Dsystemd.default=rescue.target
  • Esystemd.unit=rescue.target

How the community answered

(38 responses)
  • B
    3% (1)
  • C
    11% (4)
  • D
    3% (1)
  • E
    84% (32)

Why each option

The systemd.unit= kernel command line parameter overrides the default systemd target, allowing the administrator to boot directly into rescue.target.

Asystemd.target=rescue.target

systemd.target= is not a valid systemd kernel parameter; the correct parameter name is systemd.unit=, not systemd.target=.

Bsystemd.runlevel=rescue.target

systemd.runlevel= is not a recognized systemd kernel parameter; runlevels are a SysV concept and systemd does not use this parameter name for target selection.

Csystemd.service=rescue.target

systemd.service= is not a valid kernel parameter for changing the boot target; it does not exist as a standard systemd kernel command line option.

Dsystemd.default=rescue.target

systemd.default= is not a valid systemd kernel parameter; no such option exists in the systemd kernel command line interface.

Esystemd.unit=rescue.targetCorrect

systemd recognizes the kernel parameter systemd.unit= to specify which unit file to use as the initial target instead of the compiled-in default (usually multi-user.target or graphical.target). Setting systemd.unit=rescue.target at the bootloader prompt boots the system into rescue mode, providing a minimal single-user environment for recovery tasks.

Concept tested: systemd.unit kernel parameter for changing boot target

Source: https://www.freedesktop.org/software/systemd/man/latest/kernel-command-line.html

Topics

#systemd#boot target#kernel command line#rescue.target

Community Discussion

No community discussion yet for this question.

Full LX0-103 Practice