Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Aug 2015 10:42:47 +0200
From:      Ganael Laplanche <ganael.laplanche@corp.ovh.com>
To:        <freebsd-hackers@freebsd.org>
Cc:        Eric McCorkle <eric@metricspace.net>
Subject:   Re: EFI ZFS loader success story
Message-ID:  <201508261042.47680.ganael.laplanche@corp.ovh.com>
In-Reply-To: <201508121139.40852.ganael.laplanche@corp.ovh.com>
References:  <201508121139.40852.ganael.laplanche@corp.ovh.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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=3Dzfs:root/ROOT/default:
> load boot/kernel/kernel
> load boot/kernel/zfs.ko
> autoboot
> EOF
> [...]

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

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

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

Best regards,

=2D-=20
Gana=EBl LAPLANCHE <ganael.laplanche@corp.ovh.com>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201508261042.47680.ganael.laplanche>