mirror of
https://github.com/nix-community/disko.git
synced 2026-12-02 05:53: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:
|
def deactivate:
|
||||||
if .type == "disk" then
|
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
|
elif .type == "part" then
|
||||||
[
|
[
|
||||||
|
|||||||
Reference in new issue
Block a user