==== auto.crypt ====
 
==== auto.crypt ====
Encrypted partitions need some extra treatment. A decrypted device has to be created first, so that it can be mounted by autofs.  
+
[[Linux/Security/Encrypted disk|Encrypted partitions]] need some extra treatment. A decrypted device has to be created first, so that it can be mounted by autofs.  
    
If a configuration file is made executable, autofs will treat it as a normal shell script and use the output string as the mount definition. The input parameter is the requested mount point, i.e. "backup"
 
If a configuration file is made executable, autofs will treat it as a normal shell script and use the output string as the mount definition. The input parameter is the requested mount point, i.e. "backup"
 
# Check if there is an encrypted disk currently plugged in
 
# Check if there is an encrypted disk currently plugged in
 
# if so, create the decrypted device /dev/mapper/backup with luksOpen
 
# if so, create the decrypted device /dev/mapper/backup with luksOpen