Your message dated Sat, 06 Dec 2014 09:44:58 +0300
with message-id <[email protected]>
and subject line Re: Bug#772177: mdadm: postinst fails on rm 
--ignore-fail-on-non-empty
has caused the Debian Bug report #772177,
regarding mdadm: postinst fails on rm --ignore-fail-on-non-empty
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
772177: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=772177
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: mdadm
Version: 3.3.2-3
Severity: grave

While installing build dependencies for libguestfs in build chroot
(sid-amd64), I got the following message:

Setting up mdadm (3.3.2-3) ...
update-initramfs: deferring update (trigger activated)
rm: unrecognized option '--ignore-fail-on-non-empty'
Try 'rm --help' for more information.
dpkg: error processing package mdadm (--configure):
 subprocess installed post-installation script returned error exit status 1

That switch simply does not exist. The problematic call is in the
postinst script on line 103:

,----
|     if dpkg --compare-versions "$2" le 3.3.2-1; then
|       rm -f /var/lib/mdadm/CONF-UNCHECKED /var/lib/mdadm/mdadm.conf-generated
|       rm --ignore-fail-on-non-empty /var/lib/mdadm
|     fi
`----

I suggest replacing it with something like rm -d /var/lib/mdadm || true

Cheers,
-Hilko

--- End Message ---
--- Begin Message ---
Version: 3.3.2-4

06.12.2014 00:08, Hilko Bengen wrote:
[..]
> I suggest replacing it with something like rm -d /var/lib/mdadm || true

I'd suggest you to check existing bugreports at least, before
filing a new one.  This has already been fixed in a more recent
version already available in the archives.

Thanks,

/mjt

--- End Message ---

Reply via email to