summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xfunctions/defaults.sh6
-rwxr-xr-xshare/hooks/0110-remove-mdadm-configuration.chroot7
2 files changed, 11 insertions, 2 deletions
diff --git a/functions/defaults.sh b/functions/defaults.sh
index 7b33bbd30..e6fe7c5c6 100755
--- a/functions/defaults.sh
+++ b/functions/defaults.sh
@@ -609,7 +609,8 @@ Set_defaults ()
remove-openssh-server-host-keys \
remove-python-py \
remove-udev-persistent-rules \
- remove-linux-image-backups}"
+ remove-linux-image-backups \
+ remove-mdadm-configuration}"
;;
kubuntu)
@@ -621,7 +622,8 @@ Set_defaults ()
remove-openssh-server-host-keys \
remove-python-py \
remove-udev-persistent-rules \
- remove-linux-image-backups}"
+ remove-linux-image-backups \
+ remove-mdadm-configuration}"
;;
esac
diff --git a/share/hooks/0110-remove-mdadm-configuration.chroot b/share/hooks/0110-remove-mdadm-configuration.chroot
new file mode 100755
index 000000000..206b494da
--- /dev/null
+++ b/share/hooks/0110-remove-mdadm-configuration.chroot
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -e
+
+# Remove generated files
+
+rm -f /etc/mdadm/mdadm.conf