disk-deactivate: Remove MBR bootstrap code for disk

This commit is contained in:
Carl Dong 2023-10-18 16:52:42 -04:00 committed by mergify[bot]
parent c24c3a9029
commit 94af39d27e

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
[