Bug#398088: dpkg --purge mdadm not purging /etc/mdadm/mdadm.conf

Fabrice Lorrain Fabrice.Lorrain at free.fr
Sat Nov 11 20:41:02 CET 2006


martin f krafft a écrit :
> tags 398088 confirmed pending patch
> severity 398088 important
> thanks
> 
> also sprach Fabrice Lorrain <Fabrice.Lorrain at free.fr> [2006.11.11.1904 +0100]:
> 
>>After a fresh install of mdadm, dpkg --purge does not purge /etc/mdadm/*
>>as expected.
> 
> 
> It really should, and it does here. However, I think I've spotted
> the problem. Try this:
> 
> # rm -rf /etc/mdadm
> # apt-get install mdadm
> [...]
> # /usr/share/mdadm/mkconf force-generate
> # dpkg -P mdadm
> 
> Does this fix it?

It seems so. Thanks for your very quick answers & fix.

@+,
	Fab


$ LANG=C sudo aptitude install mdadm
...<snip>...

$ LANG=C sudo /usr/share/mdadm/mkconf force-generate
$ LANG=C sudo  dpkg -P mdadm
(Reading database ... 324892 files and directories currently installed.)
Removing mdadm ...
W: mdadm: I'll update the initramfs, but if you need MD to boot
W: mdadm: with initramfs, you'll be screwed!
update-initramfs: Generating /boot/initrd.img-2.6.16-2-k7
update-initramfs: Generating /boot/initrd.img-2.6.14.3-arkham
Purging configuration files for mdadm ...
$ LANG=C ls -l /etc/mdadm
ls: /etc/mdadm: No such file or directory





More information about the pkg-mdadm-devel mailing list