Using GPT labels in rc.conf's geli_devices and geli_flags

Chris Stankevitz chris at
Fri Sep 30 16:42:54 UTC 2016

On 9/30/16 8:02 AM, Chris Stankevitz wrote:
I should have been more clear: I question what should the rc.conf 
variable name should be.  Certainly I cannot put forward slashes in a 
variable name as I did in A2:
> geli_/dev/gpt/ABCD_flags=

 From /etc/rc.d/geli:

   provider_=`ltr ${provider} '/-' '_'`

   eval "flags=\${geli_${provider_}_flags}"

So it looks like I should be using:

   geli__dev_gpt_ABCD_flags="-k /root/ABCD.key"


More information about the freebsd-questions mailing list