nerdexam
CompTIA

XK0-004 · Question #391

Which of the following commands adds a bootioader that will allow an administrator lo boot to a specific kernel version?

The correct answer is A. mkinitrd. The mkinitrd command creates an initial RAM disk image for a specific kernel version, which is a required component for that kernel to boot successfully.

System Management

Question

Which of the following commands adds a bootioader that will allow an administrator lo boot to a specific kernel version?

Options

  • Amkinitrd
  • Bdracut
  • Cgrub2-install
  • Dgrub2-mkconfig

How the community answered

(60 responses)
  • A
    95% (57)
  • C
    2% (1)
  • D
    3% (2)

Why each option

The mkinitrd command creates an initial RAM disk image for a specific kernel version, which is a required component for that kernel to boot successfully.

AmkinitrdCorrect

mkinitrd generates the initrd (initial RAM disk) image for a named kernel version, bundling the kernel modules and tools needed to mount the root filesystem during the early boot stage. Without a matching initrd, the bootloader cannot successfully hand off control to a specific kernel. This command is used when an administrator installs a kernel and needs to create the corresponding boot image that enables the bootloader to offer that kernel as a boot target.

Bdracut

dracut is a modern tool that also generates initramfs images but serves a similar function to mkinitrd and is not the answer being tested here.

Cgrub2-install

grub2-install writes the GRUB2 bootloader binary to a disk's MBR or EFI partition, installing the bootloader itself rather than preparing a specific kernel to be bootable.

Dgrub2-mkconfig

grub2-mkconfig auto-detects installed kernels and generates the /boot/grub2/grub.cfg configuration file, but does not create the kernel boot image files themselves.

Concept tested: Creating initrd image to enable specific kernel boot

Source: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/kernel_administration_guide/ch-manually_upgrading_the_kernel

Topics

#bootloader#GRUB#kernel version#grub2-install

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice