From 8502bdc72249c505e041028628efdc80fd0d049a Mon Sep 17 00:00:00 2001 From: Chris Vogel Date: Thu, 20 Oct 2022 09:00:12 +0200 Subject: [PATCH] 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. --- tomb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tomb b/tomb index d3a9403..1b7ad27 100755 --- a/tomb +++ b/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:"