From owner-freebsd-bugs@FreeBSD.ORG Fri Oct 10 07:26:47 2014 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id ECB234AC for ; Fri, 10 Oct 2014 07:26:46 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CDFABF0A for ; Fri, 10 Oct 2014 07:26:46 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id s9A7QkTF021501 for ; Fri, 10 Oct 2014 07:26:46 GMT (envelope-from bugzilla-noreply@freebsd.org) 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 Date: Fri, 10 Oct 2014 07:26:47 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: uefi X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dch@skunkwerks.at X-Bugzilla-Status: Issue Resolved X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Oct 2014 07:26:47 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D192184 --- Comment #15 from Dave Cottlehuber --- @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.=