@@ -10,6 +10,11 cleanup (){ | |||||
10 | sleep 3 |
|
10 | sleep 3 | |
11 | fuser -9 -k -v "$R" |
|
11 | fuser -9 -k -v "$R" | |
12 |
|
12 | |||
|
13 | # Clean up temporary .password file | |||
|
14 | if [ -r ".password" ] ; then | |||
|
15 | shred -zu .password | |||
|
16 | fi | |||
|
17 | ||||
13 | # Clean up all temporary mount points |
|
18 | # Clean up all temporary mount points | |
14 | echo "removing temporary mount points ..." |
|
19 | echo "removing temporary mount points ..." | |
15 | umount -l "$R/proc" 2> /dev/null |
|
20 | umount -l "$R/proc" 2> /dev/null |
@@ -452,6 +452,7 if [ "$ENABLE_CRYPTFS" = true ] ; then | |||||
452 |
|
452 | |||
453 | # Setup password keyfile |
|
453 | # Setup password keyfile | |
454 | echo -n ${CRYPTFS_PASSWORD} > .password |
|
454 | echo -n ${CRYPTFS_PASSWORD} > .password | |
|
455 | chmod 600 .password | |||
455 |
|
456 | |||
456 | # Initialize encrypted partition |
|
457 | # Initialize encrypted partition | |
457 | echo "YES" | cryptsetup luksFormat "${ROOT_LOOP}" -c "${CRYPTFS_CIPHER}" -s "${CRYPTFS_XTSKEYSIZE}" .password |
|
458 | echo "YES" | cryptsetup luksFormat "${ROOT_LOOP}" -c "${CRYPTFS_CIPHER}" -s "${CRYPTFS_XTSKEYSIZE}" .password |
General Comments 0
Vous devez vous connecter pour laisser un commentaire.
Se connecter maintenant