GELI key question...
Mason Loring Bliss
mason at blisses.org
Wed Mar 4 02:03:34 UTC 2015
Right now I've got root-on-ZFS-on-GELI from the 10.x installer, but I don't
understand all the moving parts, and I'd love some pointers. In particular,
the man pages geli(8) and loader.conf(5) don't tell me what I want.
I've got an ultimate goal and a short term goal. The short term goal is to
have a key on a USB stick (maybe in a UFS2 partition, maybe just data on the
disk itself - doesn't matter) and have loader.conf reference that as the key
to unlock my root disk(s), for unattended boot as long as the USB stick is
inserted in the system.
First thing that's unclear: Where is the GELI syntax for loader.conf
documented? The GELI man page gives examples of use, but it doesn't say how
the configs are composed.
For example, it shows this:
Is the name of the variable fixed there? What's interpreting it? Would this
The _type variable seems to specify the device to which the variable applies.
I don't know if the variable name is freeform(ish) or if the da0 needs to be
duplicated as it in in the man page's example.
More relevant, can the _name variable specify another device? If so, can I
use gpt labels for this, so that I can point to gpt/keypart? Or are those
only available once the system has booted? I'd like to not have to depend on
the USB key having the same device on each boot, and gpt labels seem ideal
Next, I don't see loader.conf specifying which slot to use. I could be
confusing the concepts... My understanding is that there is one key and a
couple slots for user keys. Is my idea of having the bootloader default to
the USB stick unless it's not there and use a file-and-passphrase already on
/boot otherwise feasible? I'm not sure how to specify an order to try, never
mind the location on another device of one of the keys.
I'm sure I've forgotten something in the midst of all this, so anything
obvious I'm missing would be greatly appreciated.
PS: I now see some of the name composition stuff in sys/boot/forth/support.4th
but I don't claim to know Forth and I'm having some trouble reading it at
end_of_line? if 0 else letter? digit? underscore? dot? or or or then
I should learn Forth. But anyway... Thank you kindly in advance for pointers
Mason Loring Bliss (( "In the drowsy dark cave of the mind dreams
mason at blisses.org )) build their nest with fragments dropped
http://blisses.org/ (( from day's caravan." - Rabindranath Tagore
More information about the freebsd-questions