Hello,
Here are the steps which I follow to modify my ISO for adding Kickstart, you might want to give it a try. One can run these steps on RHEL7/CentOS7 machine.
1. Mount the DVD iso at some location:
# mount -o loop /path/to/rhel-server-7.2-x86_64-dvd.iso /mnt
2. Then create a directory and copy all the contents of the ISO into the same.
# mkdir /tmp/rhel7
# shopt -s dotglob
# cp -avRf /mnt/* /tmp/rhel7
3. Verify that all hidden files like .treeinfo are there in /tmp/rhel7
# cd /tmp/rhel7
# ls -a
4. Get the kickstart file and rename it to ks.cfg
# cd /tmp/rhel7
# wget ftp://192.168.122.254/rhel7/ks.cfg <========== or simply copy your kickstart file
5. Confirm the LABEL of the DVD iso.
# blkid /path/to/rhel-server-7.2-x86_64-dvd.iso
6. Add the stanza in /tmp/rhel7/isolinux/isolinux.cfg file as follows.
#######################################
label kickstart
menu label ^Kickstart Installation of RHEL7.2
kernel vmlinuz
append initrd=initrd.img inst.stage2=hd:LABEL=RHEL-7.2\x20Server.x86_64 inst.ks=cdrom:/ks.cfg
#######################################
Make sure that the stanza has inst.stage2 and the correct label.
7. Now, save the file and create the ISO as follows.
# mkisofs -J -T -o /tmp/rhel7test.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -R -m TRANS.TBL -graft-points -V "RHEL-7.2 Server.x86_64" /tmp/rhel7/
The ISO /tmp/rhel7test.iso will be bootable. This will be for Legacy Boot only, for UEFI boot, the procedure will be a little bit different. Just few more steps added/replaced.
1. Mount the DVD iso at some location:
# mount -o loop /path/to/rhel-server-7.2-x86_64-dvd.iso /mnt
2. Then create a directory and copy all the contents of the ISO into the same.
# mkdir /tmp/rhel7
# shopt -s dotglob
# cp -avRf /mnt/* /tmp/rhel7
3. Verify that all hidden files like .treeinfo are there in /tmp/rhel7
# cd /tmp/rhel7
# ls -a
4. Get the kickstart file and rename it to ks.cfg
# cd /tmp/rhel7
# wget ftp://192.168.122.254/rhel7/ks.cfg <========== or simply copy your kickstart file
5. Confirm the LABEL of the DVD iso.
# blkid /path/to/rhel-server-7.2-x86_64-dvd.iso
6. Add the stanza in /tmp/rhel7/isolinux/isolinux.cfg file as follows.
#######################################
label kickstart
menu label ^Kickstart Installation of RHEL7.2
kernel vmlinuz
append initrd=initrd.img inst.stage2=hd:LABEL=RHEL-7.2\x20Server.x86_64 inst.ks=cdrom:/ks.cfg
#######################################
Make sure that the stanza has inst.stage2 and the correct label.
7. Now, save the file and create the ISO as follows.
# mkisofs -J -T -o /tmp/rhel7test.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -R -m TRANS.TBL -graft-points -V "RHEL-7.2 Server.x86_64" /tmp/rhel7/
The ISO /tmp/rhel7test.iso will be bootable. This will be for Legacy Boot only, for UEFI boot, the procedure will be a little bit different. Just few more steps added/replaced.
Regards,
Pushpendra Chavan.
_______________________________________________ Kickstart-list mailing list Kickstart-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/kickstart-list