-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 31-05-2005 16:15, Jonas Smedegaard wrote:
> Package: mdadm
> Followup-For: Bug #299623
> 
> mdadm still fails to update if udev is active.
> 
> 
> Why not rely on the workarounds in MAKEDEV instead of reinventing them?

Ok, the real problem seems to be bugs in both MAKEDEV (emitting errors
to stdout) and debconf (not flushing input).

Here's a proposed workaround - tested with udev and expected to work
also for devfsd:

- --- mdadm.postinst.orig 2005-05-31 16:25:00.000000000 +0200


+++ mdadm.postinst      2005-05-31 16:29:46.314836440 +0200


@@ -4,9 +4,10 @@





 set -e





- -if [ ! -e /dev/.devfsd ] && [ ! -e /dev/md0 ] ; then


+if [ ! -e /dev/md0 ] ; then


     cd /dev


- -    /sbin/MAKEDEV md


+    # Make sure MAKEDEV outputs errors to stderr to not confuse debconf


+    /sbin/MAKEDEV md 1>&2


 fi





 if [ "$1" = "configure" ]; then




 - Jonas

- --
* Jonas Smedegaard - idealist og Internet-arkitekt
* Tlf.: +45 40843136  Website: http://dr.jones.dk/

 - Enden er nær: http://www.shibumi.org/eoti.htm
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCnHXFn7DbMsAkQLgRAsa/AJ0c/AfQK26t1bpKBTixTbafp0MpggCePBR+
U5bXAgb1xdjqoQUHoMtbNfQ=
=U6d3
-----END PGP SIGNATURE-----

Reply via email to