Exam EX200 All QuestionsBrowse all questions from this exam
Question 43

SIMULATION -

Open kmcrl value of 5 , and can verify in /proc/ cmdline

    Correct Answer:

    To set the kmcrl value to 5 and then verify it in /proc/cmdline, you can follow these steps: First, edit the GRUB configuration file located at /etc/default/grub and append 'kmcrl=5' to the 'GRUB_CMDLINE_LINUX' line. Save and close the file. Next, regenerate the GRUB configuration file by running the command 'grub2-mkconfig -o /boot/grub2/grub.cfg'. Finally, reboot the system and verify the configuration by checking the output of the command 'cat /proc/cmdline'. These steps ensure that the kmcrl parameter is set correctly across all boot entries and will be persistent across future reboots.

Discussion
corpio

this is not found in rhcsa 2021

ionix

grubby --update-kernel=ALL --args="kmcrl=5" cat /boot/grub2/grubenv systemctl reboot cat /proc/cmdline

Hmenu0s

I think this is correct except that the /boot/grub2/grubenv file does not show the update. We need to check the bootloader entries config files in `/boot/loader/entries/` directory. There will be one for each boot entry. grubby updates these files. So here is a slightly modified commands - grubby --update-kernel=ALL --args="kmcrl=5" ls /boot/loader/entries/ # check if the kernel args are updated in the conf files. added in the end of the line grep options /boot/loader/entries/8cxxxxx.conf sytemctl reboot cat /proc/cmdline

adolfoale

In RHEL8 # grub2-editenv - list | grep kernelopts # grub2-editenv - set "kernelopts=root=/dev/mapper/rhel-root ..... kmcrl=5 # systemctl reboot

VforVodoo

#grubby --update-kernel=DEFAULT --args="kmcrl=5" #grubby --info=DEFAULT #reboot #cat /proc/cmdline

ruben_mv

# vim /etc/default/grub GRUB_CMDLINE_LINUX=... kmcrl=5" # grub2-mkconfig -o /boot/grub2/grub.cfg