EFI ZFS loader success story

Ganael Laplanche ganael.laplanche at corp.ovh.com
Wed Aug 26 08:49:13 UTC 2015


On Wednesday, August 12, 2015 11:39:40 AM Ganael Laplanche wrote:

Hi,

> Prepare the EFI partition :
> ---------------------------
> [...]
> # cat > /mnt/boot/loader.rc << EOF
> unload
> set currdev=zfs:root/ROOT/default:
> load boot/kernel/kernel
> load boot/kernel/zfs.ko
> autoboot
> EOF
> [...]

FYI, I've faced a problem today with the configuration above : loading the 
kernel with a *relative* path leads to kern.bootfile being defined as 
"boot/kernel/kernel" (instead of "/boot/kernel/kernel") ; as a consequence, 
freebsd-update exits with the following error : "Cannot identify running 
kernel".

It is much better to use absolute file names within loader.rc, so the above 
paragraph should be re-written this way :

# cat > /mnt/boot/loader.rc << EOF
unload
set currdev=zfs:root/ROOT/default:
load /boot/kernel/kernel
load /boot/kernel/zfs.ko
autoboot
EOF

Best regards,

-- 
Ganaël LAPLANCHE <ganael.laplanche at corp.ovh.com>


More information about the freebsd-hackers mailing list