Bug#383891: mdadm: fix for 381181 prevents udev creating
/dev/disk/* links
Libor Klepáč
libor.klepac at bcom.cz
Sun Aug 20 22:22:10 UTC 2006
hello,
just a small modification, to take /dev/md/* and /dev/md* into account
------
for dev in `grep "^md" /proc/mdstat | sed -r 's/^md([0-9]+).*/\1/'`; do
if [ -b "/dev/md/$dev" ]; then
dev="/dev/md/$dev"
elif [ -b "/dev/md$dev" ]; then
dev="/dev/md$dev"
else
continue
fi
if [ "`/lib/udev/vol_id -l $dev`" != "" ]; then
ln -fs $dev /dev/disk/by-label/`/lib/udev/vol_id -l $dev`
fi
if [ "`/lib/udev/vol_id -u $dev`" != "" ]; then
ln -fs $dev /dev/disk/by-uuid/`/lib/udev/vol_id -u $dev`
fi
done
------
cu
libor
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-mdadm-devel/attachments/20060821/5523e9f0/attachment.pgp
More information about the pkg-mdadm-devel
mailing list