Erik Norgaard wrote:

Helge Preuss wrote:


I use a GBDE-encrypted /var partition which i attach and mount during boot in rc.local.


why don't you use /etc/rc.d/gbde? (btw, which version of FBSD?).


Heh, because I didn't know about it! Thanks, this looks like the cleanest solution.

How do I use this script? If I interpret the source correctly, I should just set
   gbde_devices-auto="AUTO"
in /etc/rc.conf and enter my encrypted partition in the fstab?

Actually, the variable ${gbde_devices-auto} in /etc/rc.d/gdbe is almost certainly a typo. I changed it to ${gbde_devices_auto}.
Additionally, one has to set
   gbde_lock_[device]=/path/to/lockfile        or
gbde_lockdir=/path/to/lockdir [where the lockfile(s) must have the encrypted slice's name and a '.lock' extension
in /etc/rc.conf.
Having done this, i have a solution for mounting encrypted partition at boot, which seems perfectly clean to me. Wonderful.


Dummy question: Where should I look to find documentation about scripts like this? I haven't found it mentioned in either the handbook or the manpages.


I don't know. It might not be documented so well yet, but there's an rc mailing list, try search the archive:

  http://lists.freebsd.org/pipermail/freebsd-rc/

Cheers, Erik



--
Helge Preuss
Freelance Software Developer
+49 177 2262 484
[EMAIL PROTECTED]

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to