Which of the following options for the kernel's command line changes the systemd boot target to rescue.target instead of the default target?
Click on the arrows to vote for the correct answer
A. B. C. D. E.E
The correct answer is E. systemd.unit=rescue.target
.
Explanation:
Systemd is the system and service manager for modern Linux systems. Systemd defines the target units for system bootup and provides commands to manage services and units. Targets are units which represent different system states like booting up, multi-user mode, graphical mode, and shutdown.
The default target is the target that systemd activates when the system is booted. In most cases, the default target is the multi-user.target, which is used to start a fully functional system in multi-user mode. However, sometimes it may be necessary to change the default target to a different target, such as the rescue target.
The rescue target is a special target used to troubleshoot and fix system problems. When the system is booted into the rescue target, the only basic services necessary to bring the system up are started, and the user is dropped into a single-user shell without network access.
To change the default target to the rescue target, you can add the following option to the kernel command line when booting the system:
rubysystemd.unit=rescue.target
This option tells systemd to start the rescue.target instead of the default target.
The other options listed in the question are incorrect:
A. systemd.target=rescue.target
is not a valid option. The correct option is systemd.unit=rescue.target
.
B. systemd.runlevel=rescue.target
is not a valid option. Runlevels are a legacy concept used in SysVinit systems, and systemd uses targets instead.
C. systemd.service=rescue.target
is not a valid option. Services are units that represent specific system services, not targets.
D. systemd.default=rescue.target
is not a valid option. The correct option is systemd.unit=rescue.target
.