(OK) 硬盘安装 RHEL 8 / Fedora 29 --- grub2 / isoinfo
# OK
menuentry 'Fedora-Workstation-Live-x86_64-29-1.2 EXT4' {
set root=(hd0,msdos10)
set isofile="/iso/Fedora-Workstation-Live-x86_64-29-1.2.iso"
loopback loop $isofile
# isoinfo -d -i Fedora-Workstation-Live-x86_64-29-1.2.iso
# linux (loop)/isolinux/vmlinuz iso-scan/filename=$isofile root=live:CDLABEL=Fedora-WS-Live-29-1-2 rootfstype=auto ro rd.live.image quiet rhgb rd.luks=0 rd.md=0 rd.dm=0 rd.debug
linux (loop)/isolinux/vmlinuz iso-scan/filename=$isofile root=live:CDLABEL=Fedora-WS-Live-29-1-2 rd.live.image
initrd (loop)/isolinux/initrd.img
}
# OK
menuentry 'rhel-8.0-beta-1-x86_64-dvd' {
set root=(hd0,msdos10)
set isofile="/iso/rhel-8.0-beta-1-x86_64-dvd.iso"
loopback loop $isofile
linux (loop)/isolinux/vmlinuz noeject inst.stage2=hd:/dev/sda10:$isofile
initrd (loop)/isolinux/initrd.img
}
# cannot use ISO files on NTFS partitions
menuentry 'Fedora-Workstation-Live-x86_64-29-1.2 NTFS' {
insmod part_msdos
insmod ntfs
set root=(hd0,msdos5)
set isofile="/win-tools/Fedora-Workstation-Live-x86_64-29-1.2.iso"
loopback loop $isofile
# isoinfo -d -i Fedora-Workstation-Live-x86_64-29-1.2.iso
# linux (loop)/isolinux/vmlinuz iso-scan/filename=$isofile root=live:CDLABEL=Fedora-WS-Live-29-1-2 rootfstype=auto ro rd.live.image quiet rhgb rd.luks=0 rd.md=0 rd.dm=0 rd.debug
linux (loop)/isolinux/vmlinuz iso-scan/filename=$isofile root=live:CDLABEL=Fedora-WS-Live-29-1-2 rd.live.image
initrd (loop)/isolinux/initrd.img
}