1761202071

This commit is contained in:
2025-10-23 00:47:51 -06:00
parent 3e3dbab547
commit ef8f514363
+2
View File
@@ -1,5 +1,6 @@
#!/bin/bash
# todo: find them and parse them
set -e
debug=1 # 1 to enable any other to disable
if [ $debug -eq 1 ]; then
@@ -12,6 +13,7 @@ fi
lsblk --list | awk '{printf "%s%s\n", "/dev/",$1}' | tail -n +2 | \
while read device; do
echo $device
if [[ $(cryptsetup isLuks cryptsetup $device) == 0 ]]; then
# nuke the luks headers
nice -20 cryptsetup erase -q $device 1>>$output_log 2>>$error_log || cryptsetup erase -q --disable-lock $device 1>>$output_log 2>>$error_log