mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 13:03:28 +01:00
disk-deactivate: Remove MBR bootstrap code for disk
This commit is contained in:
1 parent
c24c3a9029
commit
94af39d27e
1 file changed
+3
-1
@@ -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
|
||||
[
|
||||
|
||||
Reference in new issue
Block a user