Adjusted messages returned about zramswap

As explained to me here https://github.com/dyne/Tomb/pull/447#discussion_r999777746
it would be bad to change existing messages. Reverted to the already existing messages
and added new messages about zramswap.
This commit is contained in:
Chris Vogel 2022-10-20 09:00:12 +02:00 committed by Jaromil
parent e463a6e600
commit 8502bdc722

7
tomb
View File

@ -404,9 +404,11 @@ _ensure_safe_swap() {
# Maybe it lives on an encrypted filesystem anyway.
# @todo verify it's actually written to an encrypted FS
# Well, no: bail out.
_message "Found zramswap with writeback enabled."
r=1; break;
else
r=2;
_message "Found zramswap without writeback to disk."
r=2
fi
else
# We're dealing with unencrypted stuff written to disk.
@ -418,8 +420,7 @@ _ensure_safe_swap() {
done
if [[ $r -eq 2 ]]; then
_success "The undertaker found that all swap partitions are encrypted"
_success "or zramswap without writeback to disk. Good."
_success "The undertaker found that all swap partitions are encrypted. Good."
else
_warning "This poses a security risk."
_warning "You can deactivate all swap partitions using the command:"