Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Dec 2009 14:54:11 +0000
From:      RW <rwmaillists@googlemail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Temporarily halt boot process to enter encryption keys?
Message-ID:  <20091210145411.279939ad@gumby.homeunix.com>
In-Reply-To: <4B1F5263.1060907@mail.ru>
References:  <4B1F5263.1060907@mail.ru>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
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? 



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20091210145411.279939ad>