Kickstart RHEL8 via usb-storage trouble
Seems to get stuck at the /run/install/repo//images/install.img; see image for more information. Well, I am done I have been playing with this on and off for a few days so I have decided to turn to the kings & queens of Red Hat. What am I missing? Am I on the right track here?
Custom Kickstart
#version=OL8 # Use graphical install graphical # maybe this isn't right? repo --name="AppStream" --baseurl=file:///run/install/sources/mount-0000-cdrom/AppStream %packages @^server-product-environment aide audispd-plugins audit crypto-policies dnf-automatic fapolicyd firewalld iptables kexec-tools libcap-ng-utils openscap openscap-scanner openssh-clients openssh-server policycoreutils policycoreutils-python-utils rng-tools rsyslog rsyslog-gnutls scap-security-guide sudo tmux usbguard -abrt -abrt-addon-ccpp -abrt-addon-kerneloops -abrt-addon-python -abrt-cli -abrt-plugin-logger -abrt-plugin-sosreport -gssproxy -iprutils -krb5-workstation -nfs-utils -pigz -sendmail -tuned %end # Keyboard layouts keyboard --xlayouts='us' # System language lang en_US.UTF-8 # Network information network --bootproto=dhcp --device=ens3 --ipv6=auto --activate network --hostname=localhost.localdomain # Use CDROM installation media cdrom # Run the Setup Agent on first boot firstboot --enable # 28JUN21 ignoredisk --drives/dev/sdb # Partition clearing information clearpart --none --initlabel zerombr # Disk partitioning information part /boot --fstype="xfs" --ondisk=sda --size=953 part pv.303 --fstype="lvmpv" --ondisk=sda --size=41532 volgroup ol --pesize=4096 pv.303 logvol / --fstype="xfs" --size=7168 --name=root --vgname=ol logvol swap --fstype="swap" --size=1907 --name=swap --vgname=ol logvol /var/tmp --fstype="xfs" --size=1907 --name=var_tmp --vgname=ol logvol /home --fstype="xfs" --size=4768 --name=home --vgname=ol logvol /tmp --fstype="xfs" --size=4768 --name=tmp --vgname=ol logvol /var/log --fstype="xfs" --size=4768 --name=var_log --vgname=ol logvol /opt --fstype="xfs" --size=2861 --name=opt --vgname=ol logvol /usr --fstype="xfs" --size=3814 --name=usr --vgname=ol logvol /var/log/audit --fstype="xfs" --size=4768 --name=var_log_audit --vgname=ol logvol /var --fstype="xfs" --size=4768 --name=var --vgname=ol # System timezone timezone America/Chicago --isUtc # Root password admin123 rootpw --iscrypted $6$F1t421hRXAUuNVST$S0yrXwyradV.2VWusOiL2CPYueEz12CWv6aknHJkAjg1LoCmd5oHpzvwQaRTBR8AgNPHnFrFmIMyuZaJWGO7U0 # ladmin password admin123 for testing only user --groups=wheel --name=ladmin --password=$6$YAMhkdZJDg1c8AGM$qeLrdoUOFDbyxtR09NU/dDxjbS/A4C0Ims8iHtFf1YYmohXkezsaIbzBbB7Ti8tNOC1/yT3qwmmNcq6mHXeVt0 --iscrypted --gecos="ladmin" %addon org_fedora_oscap content-type = scap-security-guide profile = xccdf_org.ssgproject.content_profile_stig %end %addon com_redhat_kdump --enable --reserve-mb='auto' %end %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
Mod isolinux.cfg
# using vim or gedit find and edit the 10_linux line below... append initrd=initrd.img inst.stage2=hd:LABEL=RHEL-8-2-0-BaseOS-x86_64 inst.ks=hd:LABEL=RHEL-8-2-0-BaseOS-x86_64:/isolinux/ks.cfg
Mod EFI Boot Grub
In my case I needed to copy my modified grub.cfg from my working custom ISO directory. The best way for me to figure out how to edit that image file was to mount it, and then mount / unmount said image. Do this before you run geniso for obvious reasons.
mkdir ../tmp_efi_boot mount -o loop images/efiboot.img ../tmp_efi_boot cp EFI/BOOT/grub.cfg ../tmp_efi_boot/EFI/BOOT/grub.cfg umount ../tmp_efi_boot
Helpful Steps
# step one! get to the chopper cd
/RHEL-8-2-0-BaseOS-x86_64 # step two make the image find . -name TRANS.TBL -exec rm -f '{}' \; genisoimage -l -r -J -V RHEL-8-2-0-BaseOS-x86_64 -b isolinux/isolinux.bin -no-emul-boot -boot-load-size 4 -boot-info-table -c isolinux/boot.cat -o ../RHEL-8-2-0-BaseOS-x86_64.iso -eltorito-alt-boot -e images/efiboot.img -no-emul-boot . # step three finish /usr/bin/isohybrid --uefi ../RHEL-8-2-0-BaseOS-x86_64.iso &> /dev/null /usr/bin/implantisomd5 ../RHEL-8-2-0-BaseOS-x86_64.iso # step four move it onto usb and boot #cat ../RHEL-8-2-0-BaseOS-x86_64.iso > /dev/sdd dd if=../RHEL-8-2-0-BaseOS-x86_64.iso of=/dev/sde bs=4M conv=fsync oflag=direct status=progress
Where it goes all wrong... :(
UPDATE
# note the sha256sums for images.efiboot.img and anything else you modified! vi .treeinfo
Responses