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.
This commit is contained in:
Daniel Baumann 2012-12-12 11:43:39 +01:00
parent f55ff084be
commit 8fd30d15b3
2 changed files with 11 additions and 2 deletions

View File

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

View File

@ -0,0 +1,7 @@
#!/bin/sh
set -e
# Remove generated files
rm -f /etc/mdadm/mdadm.conf