March 25, 20197 yr My array is encrypted and at boot up I'm required to enter the path to the keyfile. (right now stored on my flash drive) I'm limited because my router/pfsense is a docker so I can't copy the keyfile across from my network etc using wget. So if I store the keyfile on the flash can I do a command like cp /boot/config/ssh/sshkeyimusing to my go file as a temp measure? Where would I copy that file too at boot time? Yes I know this bypasses the whole idea of the encrypted disks. I really just wanted to try it out
March 25, 20197 yr Copy the keyfile to /root . Easiest way is to add the copy command to /boot/config/go, before you start emhttp #!/bin/bash # let encrypted array auto-start (obviously, not secure) cp /boot/config/custom/keyfile /root # Start the Management Utility /usr/local/sbin/emhttp &
March 25, 20197 yr Author 10 minutes ago, ljm42 said: Copy the keyfile to /root . Easiest way is to add the copy command to /boot/config/go, before you start emhttp #!/bin/bash # let encrypted array auto-start (obviously, not secure) cp /boot/config/custom/keyfile /root # Start the Management Utility /usr/local/sbin/emhttp & what does this do? # Start the Management Utility /usr/local/sbin/emhttp &
March 25, 20197 yr Just now, wdelarme said: what does this do? # Start the Management Utility /usr/local/sbin/emhttp & That starts the webgui. It is in your go script already, I was just showing that you want to copy the file before that line so the array will be able to auto-start.
March 25, 20197 yr Author Just now, ljm42 said: That starts the webgui. It is in your go script already, I was just showing that you want to copy the file before that line so the array will be able to auto-start. OHHH!! I had no idea thats what started it
March 25, 20197 yr I guess this is a good time to mention that you need to be careful when editing this file Also, be sure to use a good text editor that understands Linux line endings (such as Notepad++), definitely not the standard Windows Notepad.
March 25, 20197 yr Author Just now, ljm42 said: I guess this is a good time to mention that you need to be careful when editing this file Also, be sure to use a good text editor that understands Linux line endings (such as Notepad++), definitely not the standard Windows Notepad. I use VI or vim usually (Only way to learn it is to use it)
Archived
This topic is now archived and is closed to further replies.