From 94af39d27ebae7bca3361bd801bf52e4e7f78201 Mon Sep 17 00:00:00 2001 From: Carl Dong Date: Wed, 18 Oct 2023 16:52:42 -0400 Subject: [PATCH] disk-deactivate: Remove MBR bootstrap code for disk --- disk-deactivate/disk-deactivate.jq | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/disk-deactivate/disk-deactivate.jq b/disk-deactivate/disk-deactivate.jq index de8ce3e..2523ff1 100644 --- a/disk-deactivate/disk-deactivate.jq +++ b/disk-deactivate/disk-deactivate.jq @@ -26,7 +26,9 @@ def remove: def deactivate: if .type == "disk" then [ - "wipefs --all -f \(.path)" + "wipefs --all -f \(.path)", + # Remove the MBR bootstrap code + "dd if=/dev/zero of=\(.path) bs=440 count=1" ] elif .type == "part" then [