Build ISO with mkisofs
I am trying to build a RHEL 8-10 ISO with a basic web server (will add more later) to allow easier deployment. However, my system does not recognize any of the repositories that are specified in my ks.cfg file. See image. The Installation Summary GUI reports back Installation Source "Error setting up base repository" But when I click, I see the respositories, but cannot do anything with them.
I have downloaded all the repositories that I need in OEMDRV directory.
I ran createrepo_c to build it the respository.
I am building this on Ubuntu 22.04 Workstation. I tried everything, but, cannot seem to get this working. I am needing help.
.
ks.cfg
License agreement eula --agreed # Use graphical install graphical # Add repositories repo --name="AppStream" --baseurl=file:///mnt/install/repo/AppStream repo --name="BaseOS" --baseurl=file:///mnt/install/repo/BaseOS repo --name="OEMDRV" --baseurl=file:///mnt/install/repo/OEMDRV # Package selection %packages @^graphical-server-environment kexec-tools yum-utils wget git httpd %end # Keyboard layouts keyboard --xlayouts='us' # System language lang en_US.UTF-8 # Network information network --bootproto=dhcp --device=ens192 --ipv6=auto --activate network --hostname=localhost.localdomain # Use CDROM installation media cdrom # Run the Setup Agent on first boot firstboot --enable # Disk and partitioning ignoredisk --only-use=sda clearpart --none --initlabel autopart # System timezone timezone America/New_York --isUtc # Root password rootpw --plaintext [password] # Subscription manager addon %addon com_redhat_subscription_manager %end %post subscription-manager register --username="UNAME" --password="PASSWORD" %end # Kdump addon %addon com_redhat_kdump --enable --reserve-mb='auto' %end # Anaconda root password policy %anaconda pwpolicy root --minlen=6 --minquality=1 --notstrict --nochanges --notempty pwpolicy user --minlen=6 --minquality=1 --notstrict --nochanges --emptyok pwpolicy luks --minlen=6 --minquality=1 --notstrict --nochanges --notempty %end
My isolinux.cfg: (Shorten)
label linux menu label ^WebServer HTTPD kernel vmlinuz append initrd=initrd.img inst.stage2=hd:LABEL=IMS inst.ks=hd:LABEL=IMS:/ks.cfg
mkisofs command:
sudo mkisofs -o /tmp/ims.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -eltorito-alt-boot -e images/efiboot.img -no-emul-boot -iso-level 3 -allow-limited-size -R -J -joliet-long -V "IMS" -r -d -graft-points /tmp/ims_server
Responses