helloSystem / ISO

helloSystem Live and installation ISO
https://github.com/helloSystem/
BSD 3-Clause "New" or "Revised" License
805 stars 59 forks source link

Booting Hello iso from grub2 #420

Closed knedlyk closed 1 year ago

knedlyk commented 1 year ago

I tried different ways with no luck to boot hello ISO from grub2 in order to try the system on laptop. One of the variants is below:

menuentry "FreeBSD iso" {
    insmod part_gpt
    insmod search_fs_uuid
    insmod chain
    insmod fat
    insmod part_gpt
    set isofile="/images/hello-0.7.0_0G160-FreeBSD-13.0-amd64.iso"
    loopback loop (hd0,gpt4)$isofile
#    kfreebsd (loop)/boot/kernel/kernel.gz
#    kfreebsd_module (loop)/boot/mfsroot.gz type=mfs_root
#    kfreebsd (loop)/boot/loader
    chainloader (loop)/boot/loader.efi
}

Is any chance to do it properly?

probonopd commented 1 year ago

Hello @knedlyk. I don't think that it is currently possible to do that with Grub alone, but it is possibly with Ventoy, which I think is a modified Grub.

knedlyk commented 1 year ago

Ventoy has different way to emulate iso and then boot system. Is it possible to add "grub mode" to iso? Might it help?

probonopd commented 1 year ago

That Ventoy "grub mode" is for ISOs that have issues being booted by Ventoy. There should not be issues with booting helloSystem using Ventoy. helloSystem itself is using the FreeBSD bootloader. So we don't use grub. If you'd just like to try out helloSystem, you can write the ISO directly to a USB stick and boot from there. That's the easiest way. No messing around with bootloaders at all.