diff --git a/plugins/dynamix/DiskSettings.page b/plugins/dynamix/DiskSettings.page index aee91ed44..f5c86b0f5 100644 --- a/plugins/dynamix/DiskSettings.page +++ b/plugins/dynamix/DiskSettings.page @@ -4,8 +4,8 @@ Icon="icon-disks" Tag="icon-disk" --- fields['#cfg'] = "/boot/config/plugins/dynamix/dynamix.cfg"; fields['#cleanup'] = true; - $(form).find('input[name^="display_"]').each(function(){fields[$(this).attr('name')] = $(this).val(); $(this).prop('disabled',true);}); + $(form).find('input[name^="display_"],select[name^="display_"]').each(function(){fields[$(this).attr('name')] = $(this).val(); $(this).prop('disabled',true);}); $.post('/webGui/include/Dispatcher.php',fields); } function prepareDiskSettings(form) { @@ -131,6 +131,17 @@ Default file system: > > The default file system type for a single or multi-device cache is always Btrfs. +Cache encryption passphrase: +: + +> By default the user is asked to enter the passphrase each time the array is restarted.
+> Caching the passphrase allows for restarting the array without intervention once the passphrase is entered the first time +> +> Note: the passphrase is lost after a system reboot or system powerdown and must be re-entered + Shutdown time-out: : diff --git a/plugins/dynamix/event/started/delete_keyfile b/plugins/dynamix/event/started/delete_keyfile new file mode 100644 index 000000000..4ddeac60f --- /dev/null +++ b/plugins/dynamix/event/started/delete_keyfile @@ -0,0 +1,2 @@ +#!/bin/bash +[[ -f /root/keyfile && -z $(grep -Po '^keyfile="\K[^"]+' /boot/config/plugins/dynamix/dynamix.cfg 2>/dev/null) ]] && rm -f /root/keyfile diff --git a/plugins/dynamix/event/stopped/delete_keyfile b/plugins/dynamix/event/stopped/delete_keyfile new file mode 100644 index 000000000..4ddeac60f --- /dev/null +++ b/plugins/dynamix/event/stopped/delete_keyfile @@ -0,0 +1,2 @@ +#!/bin/bash +[[ -f /root/keyfile && -z $(grep -Po '^keyfile="\K[^"]+' /boot/config/plugins/dynamix/dynamix.cfg 2>/dev/null) ]] && rm -f /root/keyfile