From owner-freebsd-geom@freebsd.org Fri Oct 26 01:06:39 2018 Return-Path: Delivered-To: freebsd-geom@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8797410D05D1 for ; Fri, 26 Oct 2018 01:06:39 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "gate2.funkthat.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EAE697BA96 for ; Fri, 26 Oct 2018 01:06:38 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (localhost [127.0.0.1]) by gold.funkthat.com (8.15.2/8.15.2) with ESMTPS id w9Q16UMT052096 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 25 Oct 2018 18:06:30 -0700 (PDT) (envelope-from jmg@gold.funkthat.com) Received: (from jmg@localhost) by gold.funkthat.com (8.15.2/8.15.2/Submit) id w9Q16UxK052095; Thu, 25 Oct 2018 18:06:30 -0700 (PDT) (envelope-from jmg) Date: Thu, 25 Oct 2018 18:06:30 -0700 From: John-Mark Gurney To: "Michael .." Cc: freebsd-geom@freebsd.org Subject: Re: GELI without passphrase on ZFS root Message-ID: <20181026010630.GD75530@funkthat.com> Mail-Followup-To: "Michael .." , freebsd-geom@freebsd.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Operating-System: FreeBSD 11.0-RELEASE-p7 amd64 X-PGP-Fingerprint: D87A 235F FB71 1F3F 55B7 ED9B D5FF 5A51 C0AC 3D65 X-Files: The truth is out there X-URL: https://www.funkthat.com/ X-Resume: https://www.funkthat.com/~jmg/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? User-Agent: Mutt/1.6.1 (2016-04-27) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (gold.funkthat.com [127.0.0.1]); Thu, 25 Oct 2018 18:06:30 -0700 (PDT) X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Oct 2018 01:06:39 -0000 Michael .. wrote this message on Thu, Oct 25, 2018 at 12:25 +0200: > Has anyone been able to achieve this? >   > I installed FreeBSD 11.2 using AutoZFS option with encryption turned on.  Passphrase is specified as part of install. >   > I want to switch to only a keyfile and no passphrase: >   > geli setkey -K /boot/encryption.key -P /dev/xyz If this is on your ZFS root that is encrypted w/ the key file, how do you expect to be able to boot the system when the keyfile you need to decrypt is encrypted? > This completes, but I'm still prompted for passphrase on boot.  Nothing appears accepted by the prompt (as the userkey is using only keyfile now?) >   > Setting geom_eli_passphrase_prompt="NO" doesn't help. Well, the default boot I believe can only handle passphrase. You can look at this instructions on booting from a USB drive which can contain the key file: https://forums.freebsd.org/threads/zfs-boot-from-usb.45880/ I don't think zfsboot (which is needed for ZFS root booting) can handle key files, because it needs to get the key file from somewhere, and it is a very small binary, and so does not have the space to load it from other drives... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."