Update 'freenas_network_unlock.py'

This commit is contained in:
2019-11-27 11:47:18 -05:00
parent 09f00dc8dd
commit 4cdc7dcdc5

View File

@@ -66,7 +66,7 @@ rc = call("mkdir /mnt/ramfs", shell=True)
rc = call("mdmfs -s 1m md /mnt/ramfs", shell=True)
# Send our unlock/mount script to the pi and execute it on the pi using ssh
rc = call("ssh config.KEY_HOST_USER@config.KEY_HOST 'echo -n config.LUKS_PASSWORD | cryptsetup luksOpen config.LUKS_VOLUME FreeNASRecoveryKeys -d - && mount /dev/mapper/FreeNASRecoveryKeys /mnt/FreeNASRecoveryKeys'", shell=True)
rc = call("ssh {}@{} 'echo -n {} | cryptsetup luksOpen {} FreeNASRecoveryKeys -d - && mount /dev/mapper/FreeNASRecoveryKeys /mnt/FreeNASRecoveryKeys'".format(config.KEY_HOST_USER, config.KEY_HOST, config.LUKS_PASSWORD, config.LUKS_VOLUME), shell=True)