mirror of
https://github.com/suikan4github/kaiten-yaki.git
synced 2025-12-20 02:21:17 -03:00
Clear passphrase information before exit.
This commit is contained in:
parent
27a64ba066
commit
6722b160cb
3 changed files with 15 additions and 0 deletions
|
|
@ -139,6 +139,9 @@ function confirmation(){
|
|||
...Installation process terminated..
|
||||
HEREDOC
|
||||
return 1 # with error status
|
||||
else
|
||||
# Clear the PASSPHRASE for checking because we don't use it anymore.
|
||||
PASSPHRASE_C=""
|
||||
fi # passphrase validation
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -67,8 +67,14 @@ function main() {
|
|||
post_install
|
||||
|
||||
# Free LUKS volume as swap volume.
|
||||
echo "...Disabling swap to release the LUKS volume."
|
||||
swapoff -a
|
||||
|
||||
# Deleting the passphrase information.
|
||||
echo "...Deleting passphrase information."
|
||||
PASSPHRASE=""
|
||||
export PASSPHRASE
|
||||
|
||||
# Normal end
|
||||
return 0
|
||||
|
||||
|
|
|
|||
|
|
@ -82,8 +82,14 @@ function main() {
|
|||
post_install
|
||||
|
||||
# Free LUKS volume as swap volume.
|
||||
echo "...Disabling swap to release the LUKS volume."
|
||||
swapoff -a
|
||||
|
||||
# Deleting the passphrase information.
|
||||
echo "...Deleting passphrase information."
|
||||
PASSPHRASE=""
|
||||
export PASSPHRASE
|
||||
|
||||
# Normal end
|
||||
return 0
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue