I used to be able to kexec into a new kernel immediately after a kickstart (anaconda) install via pxe.

I was able to do this by figuring out the current kernel version, and grabbing cmdline options by using /boot/grub/grub.conf

cmdline=$(awk /kernel.*console/'{$1=$2=""; print$0}' /boot/grub/grub.conf)

Then: kexec -l /boot/vmlinuz-$(uname -r) --initrd=/boot/initramfs-$(uname -r).img --append="${cmdline}"

Now I am unable to find what the cmdline options for the next reboot are since /proc/cmdline and the cmdline command only show me what the cmdline is for the installation disc.

How would I be able to find out what the cmdline is for next reboot now?


You can use

reboot --kexec

in your kickstart file.

This should be equivalent to your previous approach, i.e. the kickstart software then figures out the kexec parameters for the newly installed system.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.