From owner-freebsd-questions@FreeBSD.ORG Thu Dec 10 14:54:17 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 71E701065694 for ; Thu, 10 Dec 2009 14:54:17 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-fx0-f209.google.com (mail-fx0-f209.google.com [209.85.220.209]) by mx1.freebsd.org (Postfix) with ESMTP id F3A668FC19 for ; Thu, 10 Dec 2009 14:54:16 +0000 (UTC) Received: by fxm2 with SMTP id 2so1571156fxm.13 for ; Thu, 10 Dec 2009 06:54:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type:content-transfer-encoding; bh=M0QjQQeSRtFiD8BydsMsv+ULeFZrhqE+skr5AeMk8ZY=; b=ewc3tE1eVSamKMjo/xD6CE8Pk6cTesTCpgektkCTo1aFY8wDuKm4m6EJzCUFdP9/xA kFyyRqsS/U4TIIg5yjhB8cxDxxSHK6UmkB30TXtKVnO6Kt1EOoNjcHbHNg6T0H8VcHho IrR2jw7mAd9yimHW/Lq3prCL61EUTXo8gkDdE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; b=evBuY48HlCv6BAMmWa3Fu/N8EKUmEcjeQH0s1onZiuNKZZ2NJGnUiuddhU0uo0jhjq zPs9IeoG8TVzR0QBUK37OKPOUTFISETmtHwFhpqgeW90JKiv7cyjVE8abpNzk3U45FCd I4jOWo3WpGzKD1WaGVAIN3wkW8Z4Mqcechy3c= Received: by 10.216.85.213 with SMTP id u63mr15029wee.15.1260456856004; Thu, 10 Dec 2009 06:54:16 -0800 (PST) Received: from gumby.homeunix.com (bb-87-81-140-128.ukonline.co.uk [87.81.140.128]) by mx.google.com with ESMTPS id u14sm3086042gvf.19.2009.12.10.06.54.13 (version=SSLv3 cipher=RC4-MD5); Thu, 10 Dec 2009 06:54:14 -0800 (PST) Date: Thu, 10 Dec 2009 14:54:11 +0000 From: RW To: freebsd-questions@freebsd.org Message-ID: <20091210145411.279939ad@gumby.homeunix.com> In-Reply-To: <4B1F5263.1060907@mail.ru> References: <4B1F5263.1060907@mail.ru> X-Mailer: Claws Mail 3.7.3 (GTK+ 2.18.4; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: Temporarily halt boot process to enter encryption keys? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Dec 2009 14:54:17 -0000 On Wed, 09 Dec 2009 01:31:47 -0600 "Corey J. Bukolt" <0.23@mail.ru> wrote: > Hello list, > > I have a FreeNAS box with a CF card for root, and 3 drives (soon to be > 4) set up with encryption and raidz on top of them. > A less than excellent detailed report of what I did is here: > http://bit.ly/5BeZq8 > This setup is a bit hackish as after the system boots I need to attach > each drive using geli, run "zpool import -f primary", and then restart > all my services (nfs, samba, etc). > > It's become a bit of a chore (especially when doing it all from a > N810), so I'm looking for a way to temporary halt the boot process so > that I can ssh in, attach the drives, and then allow the system to > continue to boot. > It's fairly trivial to write an rc.d script that pauses the boot process and waits for devices, but sshd runs after LOGIN, and nfs runs before, so you can't easily reorder then without maintaining modified rc.d scripts. I don't see the point though. Why not just write a script to do what you are doing now?