summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2012-12-12 11:43:39 +0100
committerDaniel Baumann <daniel@debian.org>2012-12-12 11:43:41 +0100
commit8fd30d15b34ad04867f233a52cdc190a6cbba713 (patch)
treecfa75a590236518ff32d096881a20f27ec476254 /share
parentf55ff084be6db41a0ef9bfd53172a68f710aaaff (diff)
downloadvyos-live-build-8fd30d15b34ad04867f233a52cdc190a6cbba713.tar.gz
vyos-live-build-8fd30d15b34ad04867f233a52cdc190a6cbba713.zip
Adding default hook to remove mdadm configuration.
mdadm creates a /etc/mdadm/mdadm.conf configuration file on package installation which contains array information from the build system.
Diffstat (limited to 'share')
-rwxr-xr-xshare/hooks/0110-remove-mdadm-configuration.chroot7
1 files changed, 7 insertions, 0 deletions
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