Problem with encrypted rc.conf - Printable Version +- nixers (https://nixers.net) +-- Forum: Operating Systems & Administration (https://nixers.net/Forum-Operating-Systems-Administration) +--- Forum: BSD (https://nixers.net/Forum-BSD) +--- Thread: Problem with encrypted rc.conf (/Thread-Problem-with-encrypted-rc-conf) |
Problem with encrypted rc.conf - indio - 10-06-2013 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? RE: Problem with encrypted rc.conf - indio - 12-06-2013 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. RE: Problem with encrypted rc.conf - zygotb - 15-06-2013 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/handbook/disks-encrypting.html http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mount-unmount.html When in doubt, consult the FreeBSD Handbook. So far it's never failed to provide answers to my questions. Good luck! |