Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Boot ISO By GRUB

範例

GRUB Boot ISO 範例 設定檔路徑 是否需要執行 update-grub
demo_40_custom / latest /etc/grub.d/40_custom 修改後,需要執行 sudo update-grub
demo_41_custom / latest /boot/grub/custom.cfg 修改後,不需要執行 sudo update-grub

GRUB Menu Entry / Boot ISO 樣板

menuentry "Manjaro xfce 21.2.5 ISO" --class Manjaro {
	set iso_file="/opt/iso/manjaro/latest/manjaro-xfce-21.2.5-220314-linux515.iso"
	search --no-floppy -f --set=iso_partition $iso_file
	probe -u $iso_partition --set=iso_partition_uuid
	set img_dev="/dev/disk/by-uuid/$iso_partition_uuid"
	loopback loop ($iso_partition)$iso_file
	set boot_option=""
	#set boot_option="lang=zh_TW keytable=us tz=Asia/Taipei"
	#set boot_option="quiet splash"
	linux (loop)/boot/vmlinuz-x86_64 img_dev=$img_dev img_loop=$iso_file $boot_option
	initrd (loop)/boot/intel_ucode.img (loop)/boot/amd_ucode.img (loop)/boot/initramfs-x86_64.img
}

See Also