Link Search Menu Expand Document

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 樣板 / Void Linux

menuentry "Void Linux 5.13.19_1 Xfce (x86_64) ISO" --class VoidLinux {
	set iso_file="/opt/iso/voidlinux/latest/void-live-x86_64-20210930-xfce.iso"
	search --set=iso_partition --no-floppy --file $iso_file
	probe --set=iso_partition_uuid --fs-uuid $iso_partition
	set img_dev="/dev/disk/by-uuid/$iso_partition_uuid"
	loopback loop ($iso_partition)$iso_file
	set boot_option=""
	#set boot_option="rd.luks=0 rd.md=0 rd.dm=0 loglevel=4 gpt add_efi_memmap vconsole.unicode=1 vconsole.keymap=us locale.LANG=en_US.UTF-8 rd.live.overlay.overlayfs=1 rd.live.ram"
	linux (loop)/boot/vmlinuz iso-scan/filename=$iso_file root=live:CDLABEL=VOID_LIVE ro init=/sbin/init $boot_option
	initrd (loop)/boot/initrd
}

See Also