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 55c9617e61
commit 79fb672816
2 changed files with 11 additions and 2 deletions

View File

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

View File

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