What specific changes are you making, if any? Why are you needing to make a custom ISO? Are you adding a kickstart? Are you updating packages?
If you are adding a kickstart, consider using mkksiso instead. If you are adding/updating packages or data on the image, consider using xorriso, which doesn’t require the amount of switches that genisoimage needs. See here for when I talked about it before.
i tried with xorriso but vm not able to boot from generated iso instead it is going to boot manager setup. i used below command to generate iso through xorriso.
The link I provided above shows what we use when making our ISO’s for general use.
xorriso \
-indev Rocky-9.5-x86_64-boot.iso \ # Input ISO
-outdev test.iso \ # Output ISO
-boot_image any replay \ # Maintains all boot information
-joliet on \ # Generates joliet tree with ISO 9660 and rock ridge
-system_id LINUX \ # sets system ID has LINUX - without this, some systems will not boot
-compliance joliet_long_names \ # Allows long file names up to 103 characters
-volid Rocky-9-5-x86_64-dvd # volume ID
We don’t use -as mkisofs or any of the related switches. We simply “replay” the boot part of the ISO and make the changes we want to make. If you’re adding files, use -map. If you’re updating an already existing file, use -update.