Page 1 of 1

XFCE gentoo derivative: booting from iso

Posted: 31 Oct 2017, 02:53
by francois
This is a splitted post from Deepin desktop and other DE or window managers, there was a tangent from the original subjet to boot from iso file on a xfce gentoo derivative named CLDX.

What is wrong on these grub2 entries to boot the cldr.iso, given that /mnt/sda2/1_iso/cldx-17.6-x86_64.iso, so that I can test that gentoo derivative:

Code: Select all

    menuentry "CLDX" {
    insmod part_msdos
    insmod ext2
    set root=(hd0,2)
    set isofile="/1_iso/cldx-17.6-x86_64.iso"
    search --no-floppy --file --set=root $isofile
    loopback loop $isofile
    linux (loop)/boot/vmlinuz from=$isofile login=guest changes=/cldx
    initrd (loop)/boot/initrd.xz
    }
    menuentry "CLDX" {
    insmod part_msdos
    insmod ext2
    set root=(hd0,2)
	set iso=/1_isos/
	loopback loop ${iso}
	linux  (loop)/boot/vmlinuz nomodeset vga=791 docache setkmap=fr isoloop=${iso}
	initrd (loop)/boot/initrd.xz
    }

Code: Select all

root@porteus:~# lsblk
...
sda      8:0    0 298.1G  0 disk 
├─sda2   8:2    0    92G  0 part /mnt/sda2
├─sda3   8:3    0     2G  0 part [SWAP]
└─sda1   8:1    0 204.1G  0 part /mnt/sda1
loop7    7:7    0  70.2M  0 loop 
loop5    7:5    0 172.1M  0 loop 
loop3    7:3    0  79.7M  0 loop 
root@porteus:~# 

Deepin desktop and other DE or window managers

Posted: 31 Oct 2017, 04:08
by Ed_P
francois this is a grub2 menu I use to boot Porteus.

Code: Select all

menuentry " Porteus 4.0 ISO - AF"  {

     set linux_folder=/porteus4.0
     set iso=/ISOs/porteus-4.0-x86_64-20171023.iso
     set boot_parms="volume=33 reboot=cold extramod=$linux_folder/003Modules"
     set gfxpayload=1024x768

     search -f $iso --set=root
     loopback loop $iso
     linux  (loop)/boot/syslinux/vmlinuz from=$iso $boot_parms
     initrd (loop)/boot/syslinux/initrd.xz
     }
If you change the iso name and the boot_parms to your cldx iso I think it will work for you.

Deepin desktop and other DE or window managers

Posted: 31 Oct 2017, 10:39
by francois
This does not work, do not forget that the iso is located in /mnt/sda2/1_iso.

Code: Select all

    menuentry " cldx"  {
     set linux_folder=/1_iso
     set iso=cldx-17.6-x86_64.iso
     set boot_parms="volume=33 reboot=cold extramod=$linux_folder/003Modules"
     set gfxpayload=1024x768
     search -f $iso --set=root
     loopback loop $iso
     linux  (loop)/boot/syslinux/vmlinuz from=$iso $boot_parms
     initrd (loop)/boot/syslinux/initrd.xz
    }   

Thanks.

XFCE gentoo derivative: booting from iso

Posted: 02 Nov 2017, 21:43
by francois
Sorry Ed and neko, by trying to split the thread I have lost your propositions.

XFCE gentoo derivative: booting from iso

Posted: 02 Nov 2017, 22:33
by Ed_P
I believe neko indicated you don't need the search command and recommended you use the drive's uuid.

I suggested you need to include the path when setting the iso variable:
set iso=/1_iso/cldx-17.6-x86_64.iso
and unless you have multiple copies of the iso the search should be adequate without a uuid.

Do you have a /1_iso/003Modules folder? If not you don't need the extramod cheatcode in the boot_parms setting.