Package: mdadm Version: 3.1.4-1+8efb9d1 Severity: minor When executing mdadm-startall on a system with multiple (yet not running) arrays I noticed the following warning, despite things otherwise working fine:
test: 259: /lib/init/rw/.mdadm/md0-uevent: unexpected operator Changing /etc/init.d/mdadm-raid to /bin/bash and adding some debug output I got: STATEDIR:/lib/init/rw/.mdadm uevent:/sys/block/md*/uevent sentinel:md*-uevent + test -e /lib/init/rw/.mdadm/md0-uevent /lib/init/rw/.mdadm/md1-uevent /etc/init.d/mdadm-raid: line 180: test: /lib/init/rw/.mdadm/md0-uevent: binary operator expected where line 180 is in fact line 176 in the original script. The simple reason is that * is expanded only here as # ls /sys/block/md*/uevent ls: cannot access /sys/block/md*/uevent: No such file or directory Maybe my setup is very specific as all this occurred because I intentionally stopped my arrays, but it would still be nice if this were handled more gracefully. Many thanks, Michael
pgp619MTKkanI.pgp
Description: PGP signature

