default vesamenu.c32
timeout 600
display boot.msg
# Clear the screen when exiting the menu, instead of leaving the menu displayed.
# For vesamenu, this means the graphical background is still displayed without
# the menu itself for as long as the screen remains in graphics mode.
menu clear
menu background splash.png
menu title AlmaLinux 8.10
menu vshift 8
menu rows 18
menu margin 8
#menu hidden
menu helpmsgrow 15
menu tabmsgrow 13
# Border Area
menu color border * #00000000 #00000000 none
# Selected item
menu color sel 0 #ffffffff #00000000 none
# Title bar
menu color title 0 #ff7ba3d0 #00000000 none
# Press [Tab] message
menu color tabmsg 0 #ff3a6496 #00000000 none
# Unselected menu item
menu color unsel 0 #84b8ffff #00000000 none
# Selected hotkey
menu color hotsel 0 #84b8ffff #00000000 none
# Unselected hotkey
menu color hotkey 0 #ffffffff #00000000 none
# Help text
menu color help 0 #ffffffff #00000000 none
# A scrollbar of some type? Not sure.
menu color scrollbar 0 #ffffffff #ff355594 none
# Timeout msg
menu color timeout 0 #ffffffff #00000000 none
menu color timeout_msg 0 #ffffffff #00000000 none
# Command prompt text
menu color cmdmark 0 #84b8ffff #00000000 none
menu color cmdline 0 #ffffffff #00000000 none
# Do not display the actual menu unless the user presses a key. All that is displayed is a timeout message.
menu tabmsg Press Tab for full configuration options on menu items.
menu separator # insert an empty line
menu separator # insert an empty line
label custom
menu label ^Custom Kickstart Installation of AlmaLinux 8.10
menu default
kernel vmlinuz
append initrd=initrd.img biosdevname=0 net.ifnames=0 inst.stage2=hd:LABEL=AlmaLinux-8-10-x86_64-dvd inst.ks=hd:LABEL=AlmaLinux-8-10-x86_64-dvd:/ks.cfg
label linux
menu label ^Install AlmaLinux 8.10
kernel vmlinuz
append initrd=initrd.img inst.stage2=hd:LABEL=AlmaLinux-8-10-x86_64-dvd quiet
label check
menu label Test this ^media & install AlmaLinux 8.10
kernel vmlinuz
append initrd=initrd.img inst.stage2=hd:LABEL=AlmaLinux-8-10-x86_64-dvd rd.live.check quiet
menu separator # insert an empty line
# utilities submenu
menu begin ^Troubleshooting
menu title Troubleshooting
label vesa
menu indent count 5
menu label Install AlmaLinux 8.10 in ^basic graphics mode
text help
Try this option out if you're having trouble installing
AlmaLinux 8.10.
endtext
kernel vmlinuz
append initrd=initrd.img inst.stage2=hd:LABEL=AlmaLinux-8-10-x86_64-dvd nomodeset quiet
label rescue
menu indent count 5
menu label ^Rescue a AlmaLinux system
text help
If the system will not boot, this lets you access files
and edit config files to try to get it booting again.
endtext
kernel vmlinuz
append initrd=initrd.img inst.stage2=hd:LABEL=AlmaLinux-8-10-x86_64-dvd inst.rescue quiet
label memtest
menu label Run a ^memory test
text help
If your system is having issues, a problem with your
system's memory may be the cause. Use this utility to
see if the memory is working correctly.
endtext
kernel memtest
menu separator # insert an empty line
label local
menu label Boot from ^local drive
localboot 0xffff
menu separator # insert an empty line
menu separator # insert an empty line
label returntomain
menu label Return to ^main menu
menu exit
menu end
ဒီတခါလည်း အကုန်လုံးနီးပါး နဂိုအတိုင်းဖြစ်ပြီး အောက်မှာပြထားတဲ့အပိုင်းတခုပဲပိုလာတာ တခုရယ်၊ label check အပိုင်းအောက်မှာ menu default ဆိုတဲ့ line ကိုဖျက်ပေးလိုက်ပါ။ အဲ့ဒါကို label custom အောက်မှာထည့်ပေးခြင်းဖြင့် boot menu မှာ ကိုယ့်ရဲ့ custom option ကို default အနေနဲ့ ရွေးထားပြီးသားဖြစ်နေပါလိမ့်မယ်။ ဒါ့ကြောင့် boot တက်တဲ့အခါမှာ menu option တခုကနေ နောက်တခုကိုထပ်ပြောင်းပေးစရာမလိုတော့ပါဘူး။
label custom
menu label ^Custom Kickstart Installation of AlmaLinux 8.10
menu default
kernel vmlinuz
append initrd=initrd.img biosdevname=0 net.ifnames=0 inst.stage2=hd:LABEL=AlmaLinux-8-10-x86_64-dvd inst.ks=hd:LABEL=AlmaLinux-8-10-x86_64-dvd:/ks.cfg
Custom ISO တခုဖန်တီးခြင်း
အားလုံးပြီးရင် နောက်ဆုံးအဆင့်မှာတော့ custom ISO ဖန်တီးဖို့သာကျန်ပါတယ်။ ဘယ်လိုမျိုး ပေါင်းစပ်ပြီး ဖန်တီးသလဲဆိုတာအောက်မှာ ကြည့်လိုက်ရအောင်။
# copy previously prepared kickstart, grub and isolinux config files into its relevant directories as belowcp./ks.cfg./custom-iso/sudocp-f./grub.cfg./custom-iso/EFI/BOOT/grub.cfgsudocp-f./isolinux.cfg./custom-iso/isolinux/isolinux.cfg# create iso file based on the ./custom-iso directory with other required parameterssudo mkisofs -o ./custom.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 "AlmaLinux-8-10-x86_64-dvd" -joliet-long ./custom-iso
# change ownership of the output iso sudochowntyla:tyla./custom.iso# modify a bootable ISO image to make it compatible with both legacy BIOS and UEFI (Unified Extensible Firmware Interface) systems
isohybrid--uefi./custom.iso# embed a checksum (specifically, an MD5 checksum) into an ISO image, allowing verification of the integrity of the ISO during boot
implantisomd5./custom.iso
ရရှိလာတဲ့ custom.iso ကို VM တခုနဲ့ အရင်ဆုံး boot တက်ကြည့်လိုက်ပါ။ အားလုံးအဆင်ပြေရင် USB drive နဲ့ bootable disk လုပ်ပြီး ကိုယ်သုံးချင်တဲ့ စက်ပေါ်မှာတင်အသုံးပြုနိုင်ပါပြီ။