mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-10 15:10:55 +00:00
Give info about used swaps on swap warning and error
This commit is contained in:
parent
f9f8b16a4d
commit
fb5d1d2cf9
4
src/tomb
4
src/tomb
@ -293,6 +293,8 @@ create_tomb() {
|
||||
error "You have swap activated; use --ignore-swap if you want to skip this check"
|
||||
act "Using encryption with swap activated is very bad, because some files, or even your secret key, could be written on hard disk."
|
||||
act "However, it could be that your swap is encrypted. If this is case, this is ok. Then, use --ignore-swap to skip this check"
|
||||
act "You seem to be using `tail -n +2 /proc/swaps|wc -l` swaps:"
|
||||
tail -n +2 /proc/swaps
|
||||
exit 1
|
||||
fi
|
||||
if ! [ ${CMD2} ]; then
|
||||
@ -473,6 +475,8 @@ mount_tomb() {
|
||||
error "You have swap activated; use --ignore-swap if you want to skip this check"
|
||||
act "Using encryption with swap activated is very bad, because some files, or even your secret key, could be written on hard disk."
|
||||
act "However, it could be that your swap is encrypted. If this is case, this is ok. Then, use --ignore-swap to skip this check"
|
||||
act "You seem to be using `tail -n +2 /proc/swaps|wc -l` swaps:"
|
||||
tail -n +2 /proc/swaps
|
||||
exit 1
|
||||
fi
|
||||
if ! [ ${CMD2} ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user