Date: Wed, 12 Aug 2015 14:47:59 +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: <201508121447.59970.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: > Using the patch from this post : >=20 > https://lists.freebsd.org/pipermail/freebsd-hackers/2015-June/047823.html >=20 > against -CURRENT (r286279), I've been able to boot my ZFS-root system, > yeah! As a followup to : https://lists.freebsd.org/pipermail/freebsd-hackers/2015-April/047608.html > Also, if someone with a UFS system could test that the modularization did= n't > break UFS functionality, that'd be helpful. I would like to add I've successfully booted a UFS root too (in UEFI mode)= =20 using your patch, with both loaders (either directly from loader.efi or usi= ng=20 boot1.efi + loader.efi). Here is how. =46irst, create partitions this way : # gpart create -s gpt ada0 # gpart add -s 800K -t efi ada0 # gpart add -t freebsd-ufs ada0 Then, install FreeBSD within the freebsd-ufs partition. You can then choose between two ways of booting your system : (let's consider the efi partition is mounted under /tmp/efi and the root FS= =20 under /mnt) 1) Using loader.efi : =2D-------------------- # cp loader.efi /tmp/efi/efi/boot/BOOTx64.efi # cat > /tmp/efi/boot/loader.rc << EOF unload set currdev=3Dpart1: load boot/kernel/kernel autoboot EOF 2) Using boot1.efi + loader.efi : =2D-------------------------------- # cp boot1.efi /tmp/efi/efi/boot/BOOTx64.efi # cp loader.efi /mnt/boot/ Cleanup previous test : # rm /tmp/efi/boot/loader.rc # rmdir /tmp/efi/boot Also, in both cases, do not forget to modify the fstab within /mnt/etc to=20 mount the root fs. 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?201508121447.59970.ganael.laplanche>