mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-12-23 02:28:58 +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.
|
# Maybe it lives on an encrypted filesystem anyway.
|
||||||
# @todo verify it's actually written to an encrypted FS
|
# @todo verify it's actually written to an encrypted FS
|
||||||
# Well, no: bail out.
|
# Well, no: bail out.
|
||||||
|
_message "Found zramswap with writeback enabled."
|
||||||
r=1; break;
|
r=1; break;
|
||||||
else
|
else
|
||||||
r=2;
|
_message "Found zramswap without writeback to disk."
|
||||||
|
r=2
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# We're dealing with unencrypted stuff written to disk.
|
# We're dealing with unencrypted stuff written to disk.
|
||||||
@ -418,8 +420,7 @@ _ensure_safe_swap() {
|
|||||||
done
|
done
|
||||||
|
|
||||||
if [[ $r -eq 2 ]]; then
|
if [[ $r -eq 2 ]]; then
|
||||||
_success "The undertaker found that all swap partitions are encrypted"
|
_success "The undertaker found that all swap partitions are encrypted. Good."
|
||||||
_success "or zramswap without writeback to disk. Good."
|
|
||||||
else
|
else
|
||||||
_warning "This poses a security risk."
|
_warning "This poses a security risk."
|
||||||
_warning "You can deactivate all swap partitions using the command:"
|
_warning "You can deactivate all swap partitions using the command:"
|
||||||
|
Loading…
Reference in New Issue
Block a user