Problem with encrypted rc.conf - BSD

Users browsing this thread: 2 Guest(s)
indio
Members
Hey there!

So I have an encrypted hard-drive (not the root partition) with geli that I decrypt and mount on boot. This drive has an rc.conf file on it that I'd like to source once the drive is mounted. Unfortunately, rc_conf_files is parsed _before_ geli runs, so the file doesn't exist yet when rc tries to load it.

Any ideas how to either get geli to mount the drive sooner or delay sourcing the rc.conf file until mounting is done?
indio
Members
I'm on FreeBSD, not Linux, so LVM isn't available. I use Geli to decrypt the GPT partitioned drive at boot, and then just mount the partition with fstab. Regrettably, the rc.conf files are all parsed before this occurs.
zygotb
Long time nixers
http://www.unix.com/man-page/FreeBSD/5/rc.conf/

Quote:The purpose of rc.conf is not to run commands or perform system startup actions directly. Instead, it is included by the various generic startup scripts in /etc which conditionalize their internal actions according to the settings found there.

Perhaps you should mount the encrypted drive using fstab. I don't know anything about geli.
http://www.freebsd.org/doc/en/books/hand...pting.html
http://www.freebsd.org/doc/en_US.ISO8859...mount.html

When in doubt, consult the FreeBSD Handbook.
So far it's never failed to provide answers to my questions.

Good luck!