mirror of
https://github.com/nix-community/disko.git
synced 2026-12-02 22:13:28 +01:00
Don't print an error if there's no raid
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
This commit is contained in:
1 parent
acd2cbdb31
commit
12d0c39ed3
1 file changed
+1
-1
@@ -27,7 +27,7 @@ def deactivate:
|
|||||||
if .type == "disk" then
|
if .type == "disk" then
|
||||||
[
|
[
|
||||||
# If this disk is a member of raid, stop that raid
|
# If this disk is a member of raid, stop that raid
|
||||||
"mdadm --stop $(lsblk \(.path) -l -p -o type,name | awk 'match($1,\"raid.*\") {print $2}')",
|
"lsblk \(.path) -l -p -o type,name | awk 'match($1,\"raid.*\") {print $2}' | xargs -r mdadm --stop",
|
||||||
# Remove all file-systems and other magic strings
|
# Remove all file-systems and other magic strings
|
||||||
"wipefs --all -f \(.path)",
|
"wipefs --all -f \(.path)",
|
||||||
# Remove the MBR bootstrap code
|
# Remove the MBR bootstrap code
|
||||||
|
|||||||
Reference in new issue
Block a user