1
0
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:
Thomas Boerger 2022-11-17 13:12:39 +01:00
parent fcb7775c04
commit 87df128a90
No known key found for this signature in database
GPG Key ID: 09745AFF9D63C79B
2 changed files with 2 additions and 0 deletions

@ -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