disk-deactivate: Remove MBR bootstrap code for disk

This commit is contained in:
Carl Dong authored and mergify[bot] committed 2023-10-22 17:26:03 +00:00
1 parent c24c3a9029
commit 94af39d27e
1 file changed
+3 -1
+3 -1
View File
@@ -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
[