mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-12-22 18:18:59 +00:00
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:
parent
e463a6e600
commit
8502bdc722
7
tomb
7
tomb
@ -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:"
|
||||
|
Loading…
Reference in New Issue
Block a user