2023. 11. 6. 12:42ㆍIT System Engineer
# OS Golden Image ISO 생성관련
sudo su
mount -o loop rhel-8.4-x86_64-dvd.iso /mnt
shopt -s dotglob
mkdir /tmp/rhel8
cp -avRf /mnt/* /tmp/rhel8
cd /tmp/rhel8
ls -a
cd /tmp/rhel8
cp /PATH/TO/CREATED/ks.cfg /tmp/rhel8/
blkid /PATH/TP/DOWNLOADED/rhel-server-8.4-x86_64-dvd.iso
rhel-8.4-x86_64-dvd.iso: BLOCK_SIZE="2048" UUID="2021-05-03-15-21-56-00" LABEL="RHEL-8-4-0-BaseOS-x86_64" TYPE="iso9660" PTUUID="426eea3b" PTTYPE="dos"
vi /tmp/rhel8/isolinux/isolinux.cfg
#######################################
label kickstart
menu label ^Kickstart Installation of RHEL8.4
kernel vmlinuz
append initrd=initrd.img inst.stage2=hd:LABEL=RHEL-8.4\x20Server.x86_64 inst.ks=cdrom:/ks.cfg
#######################################
vi /tmp/rhel8/EFI/BOOT/grub.cfg
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Install Red Hat Enterprise Linux 8.4' --class fedora --class gnu-linux --class gnu --class os {
linuxefi /images/pxeboot/vmlinuz inst.stage2=hd:LABEL=RHEL-8.4\x20Server.x86_64 inst.ks=cdrom:/ks.cfg
initrdefi /images/pxeboot/initrd.img
}
yum install genisoimage -y
cd /tmp/rhel8/
mkisofs -o /tmp/rhel8test.iso -b isolinux/isolinux.bin -J -R -l -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -eltorito-alt-boot -e images/efiboot.img -no-emul-boot -graft-points -V "RHEL-8.4 Server.x86_64" .
yum install syslinux -y
isohybrid --uefi /tmp/rhel8test.iso
'IT System Engineer' 카테고리의 다른 글
Linux firewalld 설정 (Linux firewalld settings) (0) | 2023.11.06 |
---|---|
Linux Disk 확장/증설 (Linux Disk Extension) (0) | 2023.11.06 |
Linux 절전모드해제 (Linux Disable sleep mode) (0) | 2023.11.06 |
Linux TCP/UDP Port 확인 (Linux Opened TCP/UDP Port checking) (0) | 2023.11.06 |
Linux multiple Gateway 설정 (Linux multiple gateway settings) (0) | 2023.11.06 |