Date: Fri, 10 Oct 2014 07:26:47 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 192184] [uefi] fresh install of 2014-07-14 11.0-CURRENT amd64 snapshot doesn't boot Message-ID: <bug-192184-8-LO0C9thH7q@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-192184-8@https.bugs.freebsd.org/bugzilla/> References: <bug-192184-8@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D192184 --- Comment #15 from Dave Cottlehuber <dch@skunkwerks.at> --- @pablo I'm successfully booting direct from ZFS, here's what I learned: 1. it must be a UEFI-enabled boot image (10.1 pre-releases are good) 2. zfs must have a dataset with mountpoint=3D/ and your usual /boot/* stuff= in here. Note this is not actually where the kernel will be loaded from, but i= t's where I keep the master copy so it's safely versioned on zfs. 3. the zpool* must have property bootfs set to point to that dataset, for example my default bootfs is: bootfs=3Dzroot/ROOT/default 4. you must have a FAT-style EFI partition, with the kernel modules & all b= oot loader stuff in it. I am not exactly sure if there's a way to trim this down and have a smaller set. You *must* copy this across from within FreeBSD, I = was unable to boot FreeBSD if I used either a linux system to transfer, or OSX = -- the FAT 8.3 path mangling screwed things up. I keep the master of /boot in ZFS but rsync it across to the EFI partition.= My /boot/loader.conf is: # cat /efi/boot/loader.conf # master in zfs:/boot/loader.conf but # actually loaded from /EFI FAT partition # remember to keep settings mirrored # mkdir -m 0700 /efi # mount -f msdosfs /dev/diskid/DISK-Z1F21XGNp1 /efi # rsync -harv /boot /efi/boot --exclude=3D\*.symbols --del --partial --inpl= ace kern.geom.label.disk_ident.enable=3D"0" kern.geom.label.gptid.enable=3D"0" kern.vty=3D"vt" zfs_load=3D"YES" vfs.root.mountfrom=3D"zfs:zroot/ROOT/default" my EFI partition is (directories only): # tree -qcd . =E2=94=9C=E2=94=80=E2=94=80 boot =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 defaults =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 kernel =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 modules =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 zfs =E2=94=82=C2=A0=C2=A0 =E2=94=94=E2=94=80=E2=94=80 firmware =E2=94=94=E2=94=80=E2=94=80 EFI =E2=94=9C=E2=94=80=E2=94=80 APPLE =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 EXTENSIONS =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 FIRMWARE =E2=94=82=C2=A0=C2=A0 =E2=94=94=E2=94=80=E2=94=80 CACHES =E2=94=82=C2=A0=C2=A0 =E2=94=94=E2=94=80=E2=94=80 CAFEBEEF =E2=94=94=E2=94=80=E2=94=80 refind =E2=94=9C=E2=94=80=E2=94=80 icons =E2=94=9C=E2=94=80=E2=94=80 drivers_x64 =E2=94=94=E2=94=80=E2=94=80 tools_x64 As this is still a mac there is apple cruft in here. Working on getting rid= of that. This might be better discussed on one of the mailing lists BTW rather than in a resolved ticket ;-). --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-192184-8-LO0C9thH7q>