Have someone managed to run Linux with FreeBSD loader?

I remember having reading from this forum that someone managed to boot Linux from the FreeBSD bootloader. Have not found the thread, but also not remember that they have mentioned the how.
So, someone have managed to boot linux from the loader?
And if so, can they give me their lua script?
 
The bootloader? I think it has to be a hardware-executable that loads a kernel. What do you want to replace?
You could install grub and boot a different partittion in a bootmenu...
 
I remember having reading from this forum that someone managed to boot Linux from the FreeBSD bootloader. Have not found the thread,
You are looking for Thread how-to-chain-load-other-efi-automaticly-on-loader-efi.102382, post #7.

, but also not remember that they have mentioned the how.
So, someone have managed to boot linux from the loader?
Yes, from the FreeBSD boot menu, and from the loader prompt.

Code:
# cp /boot/efi/EFI/void_grub/grubx64.efi  /boot

# sysrc -f /boot/loader.conf chain_disk="/boot/grubx64.efi"
The chain_disk variable creates a FreeBSD boot menu entry under "Options:". The Grub efi loader can be chain loaded from the boot menu, by pressing the assigned menu number or "L" key.

Alternatively, without setting the chain_disk variable, after "3. Escape to loader prompt":
Code:
OK chain /boot/grubx64.efi
or, assuming EFI partition (ESP) disk0p1 ( OK lsdev will show):
Code:
OK set currdev=disk0p1:
OK chain /efi/void_grub/grubx64.efi

Notice under "Options:" menu entry "9. ChainLoad /boot/grubx64.efi".

chain_disk.gif
 
The FreeBSD bootloader understands ZFS and UFS. It does not understand any of the Linux EXT* filesystems nor does it understand LVM.

Linux uses Grub. Grub is filesystem agnostic. It will load a kernel/initrd from an address on disk. The linux kernel uses the initrd, which is an EXT3 or EXT4 filesystem, to load necessary drivers to read the linux filesystems on disk to continue the boot. Solaris does this as well to implement ZFS boot. The FreeBSD approach is the more elegant method.
 
I remember having reading from this forum that someone managed to boot Linux from the FreeBSD bootloader. Have not found the thread, but also not remember that they have mentioned the how.
So, someone have managed to boot linux from the loader?
And if so, can they give me their lua script?

When I was still doing double booting, I used refind from Debian to select the OS to boot at EFI level, and it worked very well.
 
Back
Top