Skip to content

Commit

Permalink
Merge EFI image and BIOS image to a hybrid one
Browse files Browse the repository at this point in the history
  • Loading branch information
LuisDuarte1 committed Jan 13, 2024
1 parent 3bbc3a7 commit ca721c8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
17 changes: 6 additions & 11 deletions node/create-iso.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ cd rocky-iso
bsdtar xf ../rocky.iso
cd ..
cp ks.cfg rocky-iso/isolinux/
cp ks.cfg rocky-iso/ks-efi.cfg
cp grub.cfg rocky-iso/EFI/BOOT/grub.cfg
cp ninux-splash.png rocky-iso/isolinux/splash.png
cp isolinux.cfg rocky-iso/isolinux/
Expand All @@ -17,18 +18,12 @@ mkisofs \
-b isolinux.bin \
-c boot.cat \
-no-emul-boot -boot-load-size 4 -boot-info-table \
-eltorito-alt-boot \
-eltorito-platform efi \
-eltorito-boot images/efiboot.img \
-no-emul-boot \
-V "Rocky-NInux-9" -R -J -v -T isolinux/. .

mkisofs \
-o ../ninux-efi.iso \
-R -J -v -d -N \
-x ../ninux-efi.iso \
-hide-rr-moved \
-no-emul-boot \
-eltorito-platform efi \
-eltorito-boot images/efiboot.img \
-V "Rocky-NInux-9" \
.

cd ..
rm -rf rocky-iso
# rm -rf rocky-iso
2 changes: 1 addition & 1 deletion node/grub.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ background_image /splash.png

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Install Rocky NInux 9.3' --class fedora --class gnu-linux --class gnu --class os {
linuxefi /images/pxeboot/vmlinuz inst.stage2=hd:LABEL=Rocky-NInux-9 inst.ks=cdrom:/isolinux/ks.cfg quiet
linuxefi /images/pxeboot/vmlinuz inst.stage2=hd:LABEL=Rocky-NInux-9 inst.ks=cdrom:/ks-efi.cfg quiet
initrdefi /images/pxeboot/initrd.img
}
submenu 'Troubleshooting -->' {
Expand Down

0 comments on commit ca721c8

Please sign in to comment.