From 8fd30d15b34ad04867f233a52cdc190a6cbba713 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 12 Dec 2012 11:43:39 +0100 Subject: [PATCH] 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. --- functions/defaults.sh | 6 ++++-- share/hooks/0110-remove-mdadm-configuration.chroot | 7 +++++++ 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100755 share/hooks/0110-remove-mdadm-configuration.chroot diff --git a/functions/defaults.sh b/functions/defaults.sh index 03d8069e9..8d18d449f 100755 --- a/functions/defaults.sh +++ b/functions/defaults.sh @@ -630,7 +630,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) @@ -642,7 +643,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