Mkksiso creating custom Rocky Linux 8 ISO image

Hi Team,

I am creating custom image for Rocky 8 Linux using mkksiso with ks file and original iso dvd. but getting below error.

command :

mkksiso ks.cfg Rocky-8.10-x86_64-dvd1.iso /apps/Rocky8.iso

INFO:Running… mount -o loop /opt/Tanium/ISO/Rocky-8.10-x86_64-dvd1.iso /tmp/lorax.imgutils.eil29zhc
INFO:mount: /tmp/lorax.imgutils.eil29zhc: WARNING: device write-protected, mounted read-only.
INFO:Running… isoinfo -d -i /opt/Tanium/ISO/Rocky-8.10-x86_64-dvd1.iso
INFO:CD-ROM is in ISO 9660 format
INFO:System id: LINUX
INFO:Volume id: Rocky-8-10-x86_64-dvd
INFO:Volume set id:
INFO:Publisher id:
INFO:Data preparer id: XORRISO-1.4.8 2017.09.12.143001, LIBISOBURN-1.4.8, LIBISOFS-1.4.8, LIBBURN-1.4.8
INFO:Application id: GENISOIMAGE ISO 9660/HFS FILESYSTEM CREATOR (C) 1993 E.YOUNGDALE (C) 1997-2006 J.PEARSON/J.SCHILLING (C) 2006-2007 CDRKIT TEAM
INFO:Copyright File id:
INFO:Abstract File id:
INFO:Bibliographic File id:
INFO:Volume set size is: 1
INFO:Volume set sequence number is: 1
INFO:Logical block size is: 2048
INFO:Volume size is: 6940181
INFO:El Torito VD version 1 found, boot catalog is in sector 1505
INFO:Joliet with UCS level 3 found
INFO:Rock Ridge signatures version 1 found
INFO:Eltorito validation header:
INFO:Hid 1
INFO:Arch 0 (x86)
INFO:ID ‘’
INFO:Key 55 AA
INFO:Eltorito defaultboot header:
INFO:Bootid 88 (bootable)
INFO:Boot media 0 (No Emulation Boot)
INFO:Load segment 0
INFO:Sys type 0
INFO:Nsect 4
INFO:Bootoff 80889 526473
INFO:iso arch = x86_64
INFO:Volume Id = Rocky-8-10-x86_64-dvd
INFO:Using xorrisofs to create the new iso

WARNING:No boot/grub/grub.cfg file found
WARNING:No images/generic.prm file found
WARNING:No images/cdboot.prm file found
Traceback (most recent call last):
File “/usr/sbin/mkefiboot”, line 167, in
main()
File “/usr/sbin/mkefiboot”, line 160, in main
mkefiboot(opt.bootdir, opt.outfile, opt.label)
File “/usr/sbin/mkefiboot”, line 33, in mkefiboot
mkdosimg(None, outfile, label=label, graft={‘EFI/BOOT’:bootdir})
File “/usr/lib/python3.6/site-packages/pylorax/imgutils.py”, line 471, in mkdosimg
mkfsargs=[“-n”, label], graft=graft)
File “/usr/lib/python3.6/site-packages/pylorax/imgutils.py”, line 456, in mkfsimage
with Mount(loopdev, mountargs) as mnt:
File “/usr/lib/python3.6/site-packages/pylorax/imgutils.py”, line 347, in enter
self.mnt = mount(self.dev, self.opts, self.mnt)
File “/usr/lib/python3.6/site-packages/pylorax/imgutils.py”, line 230, in mount
runcmd(cmd)
File “/usr/lib/python3.6/site-packages/pylorax/executils.py”, line 342, in runcmd
return execWithRedirect(cmd[0], cmd[1:], **kwargs)
File “/usr/lib/python3.6/site-packages/pylorax/executils.py”, line 229, in execWithRedirect
env_add=env_add, reset_handlers=reset_handlers, reset_lang=reset_lang)[0]
File “/usr/lib/python3.6/site-packages/pylorax/executils.py”, line 202, in _run_program
raise subprocess.CalledProcessError(proc.returncode, argv, output)
subprocess.CalledProcessError: Command ‘[‘mount’, ‘-o’, ‘shortname=winnt,umask=0077’, ‘/dev/loop1’, ‘/tmp/lorax.imgutils.ham0t908’]’ returned non-zero exit status 32.
ERROR:Command ‘[‘mkefiboot’, ‘–label=ANACONDA’, ‘/tmp/mkksiso-7ucxyhfc/EFI/BOOT’, ‘/tmp/mkksiso-7ucxyhfc/images/efiboot.img’]’ returned non-zero exit status 1.
INFO:Running… umount /tmp/lorax.imgutils.eil29zhc
ERROR:Running mkefiboot

could you please help on this error solution.

Thanks in advance.

Hi Team,

It is working perfectly fine on other server may be some issue with /tmp file system.

Thanks.