[arch-projects] [RFC 05/23] Automatically tag volumes with %random

Tom Gundersen teg at jklm.no
Fri May 18 18:00:33 EDT 2012


On Fri, May 18, 2012 at 6:21 PM, Matthew Monaco <dgbaley27 at 0x01b.net> wrote:
> From: Matthew Monaco <matthew.monaco at 0x01b.net>
>
> ---
>  cryptmount.sh |    3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/cryptmount.sh b/cryptmount.sh
> index 03b8575..41b713c 100755
> --- a/cryptmount.sh
> +++ b/cryptmount.sh
> @@ -203,6 +203,9 @@ ct_read_crypttab() {
>                        -|none|"")
>                                key=-
>                                ;;
> +                       /dev/random|/dev/urandom)
> +                               options="$options,%random"
> +                               ;;

You probably want to tag /dev/hw_random as well, in case someone
decides to use a real random generator.

>                        /*|UUID=*|PARTUUID=*|LABEL=*)
>                                :
>                                ;;
> --
> 1.7.10.2
>


More information about the arch-projects mailing list