mirror of
https://github.com/nix-community/disko.git
synced 2024-09-11 06:25:33 +03:00
disk-deactivate: Remove MBR bootstrap code for disk
This commit is contained in:
parent
c24c3a9029
commit
94af39d27e
@ -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
|
||||
[
|
||||
|
Loading…
Reference in New Issue
Block a user