From owner-freebsd-amd64@freebsd.org Mon Nov 28 17:39:10 2016 Return-Path: Delivered-To: freebsd-amd64@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0993BC5A50E for ; Mon, 28 Nov 2016 17:39:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 D38E21CBD for ; Mon, 28 Nov 2016 17:39:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id uASHd90q030601 for ; Mon, 28 Nov 2016 17:39:09 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-amd64@FreeBSD.org Subject: [Bug 214911] bsdinstall/scripts/zfsboot detaches *all* GELI devices Date: Mon, 28 Nov 2016 17:39:09 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 11.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: freebsd@tim.thechases.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: 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-amd64@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Nov 2016 17:39:10 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214911 Bug ID: 214911 Summary: bsdinstall/scripts/zfsboot detaches *all* GELI devices Product: Base System Version: 11.0-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: freebsd@tim.thechases.com CC: freebsd-amd64@FreeBSD.org CC: freebsd-amd64@FreeBSD.org Attempting to create a `md0` drive image to upload to my hosting service, I= 'm using `bsdinstall` to try and do the install. This worked in 10.3, but chan= ges in 11 trigger issues. To repeat, issue the following on an existing 11.0 system installed on a ZFS-on-GELI configuration: ## show the current system is on GELI # geli list | grep Name Name: ada0p4.eli Name: ada0p4 Name: ada0p3.eli Name: ada0p3 ## show that ada0p4.eli is the only backing member of zroot # zpool status zroot ... NAME STATE READ WRITE CKSUM zroot ONLINE 0 0 0 ada0p4.eli ONLINE 0 0 0 ## create a 10GB disk image file dd if=3D/dev/zero of=3Dfreebsd.img bs=3D10m count=3D1k ##turn it into a disk # mdconfig -f freebsd.img -u 0 ## run bsdinstall # bsdinstall Specify guided ZFS-on-root, a single stripe backed by `md0` and encrypt both the pool and the swap. Proceeding with install the will show messages on t= he console that *ada0p4.eli* has been detached and the host machine will hang = for the obvious reason that its underlying GEOM_ELI has been forcibly detached = and there's no longer any root file-system. Digging further shows that /usr/src/usr.sbin/bsdinstall/scripts/zfsboot is forcibly detaching *all* GELI providers (around line 793, using GELI_DETACH= _F), not just those that it created during the install process. --=20 You are receiving this mail because: You are on the CC list for the bug.=