This guide provides steps to burn a Rocky Linux ISO to a USB.
Get a USB flash drive with a capacity of at least 16GB.
Plug the USB flash drive in a computer running Linux.
Identify the name of the flash drive as the OS sees it by running the following command
$ lsblk
You will get an output similar to the screenshot below:
In this case its sdb. Use the dd command to copy the ISO to the USB flash drive by running the following command:
$ sudo dd if=<path-to-iso>/<rocky-93-kickstart>.iso of=/dev/sdb bs=4M status=progress
After the dd command is done running you will see an output similar to the screenshot below:
Use the lsblk command again to view the partitions on the USB drive you will see the output similar to the screenshot below:
You will see two partitions on the drive. We will mount the smaller partition to view/edit files in there. Run the following command to mount the partition:
$ sudo mount /dev/sdb2 /mnt/
Inside the mount point open the grub.cfg to edit the GRUB menu by running the following command.
$ vi /mnt/EFI/BOOT/grub.cfg
Add another boot entry to the config file appending the inst.ks directive:
menuentry 'Kickstart Install Rocky Linux 9.3' --class fedora --class gnu-linux --class gnu --class os { linuxefi /images/pxeboot/vmlinuz inst.stage2=hd:LABEL=Rocky-9-3-x86_64-dvd quiet inst.ks=hd:LABEL=Rocky-9-3-x86_64-dvd:/ks.cfg initrdefi /images/pxeboot/initrd.img }
Unmount the partition from the computer:
$ sudo umount /mnt/