Add wipe warning

This commit is contained in:
Joshua Boniface 2023-09-01 15:41:58 -04:00
parent e78cdb515a
commit 4556296244
1 changed files with 8 additions and 0 deletions

View File

@ -180,6 +180,14 @@ seed_config() {
echo "Invalid disk or disk not found!" echo "Invalid disk or disk not found!"
exit 1 exit 1
fi fi
echo
echo "WARNING! All data on block device ${target_disk} will be wiped!"
echo -n "Press any key within 15 seconds to cancel... "
if read -t 15; then
exit 0
fi
echo
} }
interactive_config() { interactive_config() {