From 87df128a90139bf65b5a6adb6d7fcc3fb247265d Mon Sep 17 00:00:00 2001 From: Thomas Boerger Date: Thu, 17 Nov 2022 13:12:39 +0100 Subject: [PATCH] fix: make sure mdadm dir exists before writing into --- scripts/asgard-partitions | 1 + scripts/niflheim-partitions | 1 + 2 files changed, 2 insertions(+) diff --git a/scripts/asgard-partitions b/scripts/asgard-partitions index b9e3dd2..1298582 100755 --- a/scripts/asgard-partitions +++ b/scripts/asgard-partitions @@ -36,6 +36,7 @@ done echo "----> Remove previous MDs" mdadm --stop --scan || true +mkdir -p /etc/mdadm echo 'AUTO -all ARRAY UUID=00000000:00000000:00000000:00000000' > /etc/mdadm/mdadm.conf diff --git a/scripts/niflheim-partitions b/scripts/niflheim-partitions index 8e9884b..ca6e555 100755 --- a/scripts/niflheim-partitions +++ b/scripts/niflheim-partitions @@ -36,6 +36,7 @@ done echo "----> Remove previous MDs" mdadm --stop --scan || true +mkdir -p /etc/mdadm echo 'AUTO -all ARRAY UUID=00000000:00000000:00000000:00000000' > /etc/mdadm/mdadm.conf