From dbaf14718d9cfd83ea1d62274ce5e4a1f391d46c Mon Sep 17 00:00:00 2001 From: Logan Fick Date: Sun, 18 Jan 2026 10:12:30 -0500 Subject: [PATCH] Added blkdiscard to disk wipe for SSD optimization. --- lib/disk/partition.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/disk/partition.sh b/lib/disk/partition.sh index 50d4fcc..700d770 100644 --- a/lib/disk/partition.sh +++ b/lib/disk/partition.sh @@ -84,6 +84,8 @@ wipe_disk() { local disk="$1" 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" }