Bug#398088: dpkg --purge mdadm not purging /etc/mdadm/mdadm.conf
Fabrice Lorrain
Fabrice.Lorrain at free.fr
Sat Nov 11 19:04:55 CET 2006
Package: mdadm
Version: 2.5.5-1
Severity: normal
Hello,
This is related to BTS #398084.
After a fresh install of mdadm, dpkg --purge does not purge /etc/mdadm/*
as expected.
~$ LANG=C ls -l /etc/mdadm
ls: /etc/mdadm: No such file or directory
$ LANG=C sudo aptitude install mdadm
Reading package lists... Done
Building dependency tree... Done
....<snip>...
normal install here, see #398084.
$ cat /etc/mdadm/mdadm.conf
# mdadm.conf
#
# Please refer to mdadm.conf(5) for information about this file.
#
# by default, scan all partitions (/proc/partitions) for MD superblocks.
# alternatively, specify devices to scan, using wildcards if desired.
DEVICE partitions
# auto-create devices with Debian standard permissions
CREATE owner=root group=disk mode=0660 auto=yes
# automatically tag new arrays as belonging to the local system
HOMEHOST <system>
# instruct the monitoring daemon where to send mail alerts
MAILADDR root
# definitions of existing MD arrays
# This file was auto-generated on Sat, 11 Nov 2006 18:28:22 +0100
# by mkconf $Id: mkconf 240 2006-10-26 20:42:03Z madduck $
$ LANG=C sudo dpkg --purge 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 ...
dpkg - warning: while removing mdadm, directory `/etc/mdadm' not empty
so not removed.
$ ls -l /etc/mdadm/
total 4
-rw-r--r-- 1 root root 668 2006-11-11 18:28 mdadm.conf
And mdadm is playing with initrd again which is uneeded/wanted (#398084).
@+,
Fab
-- Package-specific info:
--- mount output
/dev/hda2 on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/hda5 on /usr type ext3 (rw)
/dev/hda6 on /usr/local type ext3 (rw)
/dev/hda7 on /srv type ext3 (rw)
oort:/mnt/baie on /mnt/oort type nfs (rw,soft,addr=192.168.28.254)
nfsd on /proc/fs/nfsd type nfsd (rw)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
--- mdadm.conf
# mdadm.conf
#
# Please refer to mdadm.conf(5) for information about this file.
#
# by default, scan all partitions (/proc/partitions) for MD superblocks.
# alternatively, specify devices to scan, using wildcards if desired.
DEVICE partitions
# auto-create devices with Debian standard permissions
CREATE owner=root group=disk mode=0660 auto=yes
# automatically tag new arrays as belonging to the local system
HOMEHOST <system>
# instruct the monitoring daemon where to send mail alerts
MAILADDR root
# definitions of existing MD arrays
# This file was auto-generated on Sat, 11 Nov 2006 18:28:22 +0100
# by mkconf $Id: mkconf 240 2006-10-26 20:42:03Z madduck $
--- /proc/mdstat:
Personalities :
unused devices: <none>
--- /proc/partitions:
major minor #blocks name
3 0 120627360 hda
3 1 979933 hda1
3 2 4883760 hda2
3 3 9767520 hda3
3 4 1 hda4
3 5 19535008 hda5
3 6 14651248 hda6
3 7 39062016 hda7
--- initrd.img-2.6.18-1-k7:
zcat: /boot/initrd.img-2.6.18-1-k7: unexpected end of file
cpio: Fin prématurée de l'archive.
-- System Information:
Debian Release: 4.0
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-1-k7
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Versions of packages mdadm depends on:
ii debconf [debconf-2.0] 1.5.8 Debian configuration management sy
ii libc6 2.3.6.ds1-8 GNU C Library: Shared libraries
ii lsb-base 3.1-19 Linux Standard Base 3.1 init scrip
ii makedev 2.3.1-83 creates device files in /dev
Versions of packages mdadm recommends:
ii module-init-tools 3.2.2-3 tools for managing Linux kernel mo
ii postfix [mail-transport-agent 2.3.4-1 A high-performance mail transport
-- debconf information excluded
More information about the pkg-mdadm-devel
mailing list