CentOS menuentry to boot ISO from grub.

Issues related to applications and software problems and general support
Post Reply
Woistmeinauto
Posts: 15
Joined: 2020/08/04 06:45:47

CentOS menuentry to boot ISO from grub.

Post by Woistmeinauto » 2020/08/05 18:23:59

I'm making a multiboot disk so i was wondering if anybody has the requires menuentry.

Found this great link : http://trcmdisk01.tripod.com/linux/s_mmlf01.html

However it's for 7, will it work on 8?

For some reason 40 custom file disappeared.
Anyways now i got this in grub customizer:

echo ooo
set isofile="/iso/centos8.2-2004.iso"
loopback loop (hd0,2)$isofile
linux (loop)/isolinux/vmlinuz selinux=0 root=live:CDLABEL=CentOS-8-2-2004-x86_64-dvd iso-scan/filename=$isofile rootfstype=auto ro rd.live.image rd.luks=0 rd.md=0 rd.dm=0 log_buf_len=64K rhgb
initrd (loop)/isolinux/initrd.img

It throws an initqueue error.

organicchemistry_01
Posts: 45
Joined: 2017/08/27 09:48:47

Re: CentOS menuentry to boot ISO from grub.

Post by organicchemistry_01 » 2020/08/08 03:04:02

Are you still up to this task?

I was installing centos 8 from ISO about 5 times since 2 months ago.

organicchemistry_01
Posts: 45
Joined: 2017/08/27 09:48:47

Re: CentOS menuentry to boot ISO from grub.

Post by organicchemistry_01 » 2020/08/08 21:15:45

Here is my boot menu entry from iso

Code: Select all

	menuentry 'Install CentOS Linux 8 in basic graphics mode from ISO' --class fedora --class gnu-linux --class gnu --class os {
	set gfxpayload=keep
	insmod gzio
	insmod part_gpt
	insmod ext2
	insmod iso9660
	    set isofile='/installer/CentOS-8.1.1911-x86_64-dvd1.iso'
	    loopback loop (hd1,gpt1)$isofile
		linuxefi (loop)/images/pxeboot/vmlinuz inst.stage2=hd:LABEL=CentOS-8-1-1911-x86_64-dvd nomodeset quiet iso-scan/filename=$isofile
		initrdefi (loop)/images/pxeboot/initrd.img
	}
set isofile -> is the location of the iso file
hd1 -> means second disk
gpt1 -> means first READABLE gpt partition

change those to your desire.

Woistmeinauto
Posts: 15
Joined: 2020/08/04 06:45:47

Re: CentOS menuentry to boot ISO from grub.

Post by Woistmeinauto » 2020/08/08 23:45:02

Thank you so much.

Post Reply

Return to “CentOS 8 - General Support”