Added blkdiscard to disk wipe for SSD optimization.

This commit is contained in:
2026-01-18 10:12:30 -05:00
parent 543198e730
commit dbaf14718d

View File

@@ -84,6 +84,8 @@ wipe_disk() {
local disk="$1" local disk="$1"
print "Wiping existing partition table from $disk..." print "Wiping existing partition table from $disk..."
# Discard all sectors first (useful for SSDs, may fail on HDDs)
run_cmd_allow_fail blkdiscard -f "$disk"
run_visible_cmd wipefs -a "$disk" run_visible_cmd wipefs -a "$disk"
} }