Date: Fri, 30 Sep 2016 09:42:52 -0700 From: Chris Stankevitz <chris@stankevitz.com> To: freebsd-questions@freebsd.org Subject: Re: Using GPT labels in rc.conf's geli_devices and geli_flags Message-ID: <68edf59e-743b-24fb-76b7-eeeedf08023e@stankevitz.com> In-Reply-To: <321975DB-DF21-4C6F-ABC0-F229EC5F2449@stankevitz.com> References: <aa8ed612-0626-3a62-d624-b007745b00aa@stankevitz.com> <20160930152831.0c563e16@X220.alogt.com> <321975DB-DF21-4C6F-ABC0-F229EC5F2449@stankevitz.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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" ALthough
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?68edf59e-743b-24fb-76b7-eeeedf08023e>