mirror of
https://github.com/tboerger/nixos-config
synced 2024-11-26 07:43:45 +01:00
fix: make sure mdadm dir exists before writing into
This commit is contained in:
parent
fcb7775c04
commit
87df128a90
@ -36,6 +36,7 @@ done
|
|||||||
|
|
||||||
echo "----> Remove previous MDs"
|
echo "----> Remove previous MDs"
|
||||||
mdadm --stop --scan || true
|
mdadm --stop --scan || true
|
||||||
|
mkdir -p /etc/mdadm
|
||||||
|
|
||||||
echo 'AUTO -all
|
echo 'AUTO -all
|
||||||
ARRAY <ignore> UUID=00000000:00000000:00000000:00000000' > /etc/mdadm/mdadm.conf
|
ARRAY <ignore> UUID=00000000:00000000:00000000:00000000' > /etc/mdadm/mdadm.conf
|
||||||
|
@ -36,6 +36,7 @@ done
|
|||||||
|
|
||||||
echo "----> Remove previous MDs"
|
echo "----> Remove previous MDs"
|
||||||
mdadm --stop --scan || true
|
mdadm --stop --scan || true
|
||||||
|
mkdir -p /etc/mdadm
|
||||||
|
|
||||||
echo 'AUTO -all
|
echo 'AUTO -all
|
||||||
ARRAY <ignore> UUID=00000000:00000000:00000000:00000000' > /etc/mdadm/mdadm.conf
|
ARRAY <ignore> UUID=00000000:00000000:00000000:00000000' > /etc/mdadm/mdadm.conf
|
||||||
|
Loading…
Reference in New Issue
Block a user