Your message dated Sat, 06 Dec 2014 10:31:44 +0300 with message-id <5482b0e0.5070...@msgid.tls.msk.ru> and subject line Re: Bug#771852: package not installable due to postinst syntax error has caused the Debian Bug report #771852, regarding package not installable due to postinst syntax error 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 ow...@bugs.debian.org immediately.) -- 771852: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=771852 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems
--- Begin Message ---Package: mdadm Version: 3.3.2-3 Severity: serious Tags: patch Hi Installing mdadm 3.3.2-3 fails with the following error Setting up mdadm (3.3.2-3) ... W: mdadm: failed to load MD subsystem. Generating mdadm.conf... done (failed to scan arrays; /proc probably not mounted). 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 as rm(1) doesn't support --ignore-fail-on-non-empty as parameter. However simply switching this to "rmdir --ignore-fail-on-non-empty" is not successful either, as /var/lib/mdadm doesn't exist on systems where mdadm hasn't been installed before (and "rmdir --ignore-fail-on-non-empty" does exit with an error code, if the directoy which it is supposed to remove doesn't exist). There are two alternatives to fix this, either by ignoring all bugs from rmdir, e.g. rmdir --ignore-fail-on-non-empty /var/lib/mdadm || : or by checking if the directory in question exists beforehand. --- mdadm-3.3.2/debian/mdadm.postinst +++ mdadm-3.3.2/debian/mdadm.postinst @@ -100,7 +100,9 @@ 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 + if [ -d /var/lib/mdadm ]; then + rmdir --ignore-fail-on-non-empty /var/lib/mdadm + fi fi ;; esac Regards Stefan Lippers-Hollmann -- System Information: Debian Release: 8.0 APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 3.18.0-rc7-aptosid-amd64 (SMP w/8 CPU cores; PREEMPT) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dashsignature.asc
Description: This is a digitally signed message part.
--- End Message ---
--- Begin Message ---Version: 3.3.2-4 03.12.2014 00:23, Stefan Lippers-Hollmann wrote: > rm: unrecognized option '--ignore-fail-on-non-empty' Fixed it in yesterday's upload but typo'ed the Closes: line and it hasn't been recognized as closed. So closing it now. Actually I found and fixed this even before the previous release which introduced it, while doing testing, but forgot to commit the change and as the result, the release went w/o the fix. Oh well. Thank you for the report. /mjt
--- End Message ---