Skip to content

Commit

Permalink
update security erase messages
Browse files Browse the repository at this point in the history
  • Loading branch information
chazzam committed May 24, 2017
1 parent d00e542 commit 9ebe73c
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions etc/disk-tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -638,11 +638,6 @@ erase_drives() {
}
security_erase_walkthrough() {
[ -z "$SDXS" ] && list_disks
[ -z "$SDXS" ] && exerr "ERROR: No drives found to work with"
[ "$(any_ssd)" = "1" ] || exerr "ERROR: No SSD drives detected"
( install_hdparm );
cat<<EOF
Please ensure only SSD drives are installed, and that every drive
Expand All @@ -653,12 +648,22 @@ a RAID card.
If any drives are still connected via a RAID card, power off and correct
this before continuing.
EOF
[ -z "$SDXS" ] && list_disks
[ -z "$SDXS" ] && exerr "ERROR: No drives found to work with"
[ "$(any_ssd)" = "1" ] || exerr "ERROR: No SSD drives detected"
( install_hdparm );
cat<<EOF
WARNING!!! WARNING!!! WARNING!!! TAKE HEED!!! WARNING!!!
This operation will wipe the contents and file system of the
confirmed drives. This operation is intended to be unrecoverable.
Ensure you have good working backups of any important data.
We will not be held liable for any lost data as a result of this process
WARNING!!! WARNING!!! WARNING!!! TAKE HEED!!! WARNING!!!
WARNING!!! WARNING!!! TAKE HEED!!! WARNING!!! WARNING!!!
EOF
Expand Down

0 comments on commit 9ebe73c

Please sign in to comment.