Updating link to change in openSUSE:Factory/mdadm revision 37.0

OBS-URL: https://build.opensuse.org/package/show/Base:System/mdadm?expand=0&rev=9b73d48c6d474dda681e03d96abdf80c
This commit is contained in:
OBS User buildservice-autocommit
2010-01-18 13:08:58 +00:00
committed by Git OBS Bridge
parent 410dbf2ce6
commit 298bcd22f8
5 changed files with 82 additions and 46 deletions

View File

@@ -18,6 +18,11 @@
# load the necessary module before we initialize the raid system
load_modules
# put the mdmon socked and pid file to /dev/.mdadm
rm -rf /var/run/mdadm
mkdir -p /var/run
ln -s /dev/.mdadm /var/run/mdadm
mkdir -p /dev/.mdadm
[ "$mduuid" ] && md_uuid="$mduuid"
md_major=$(sed -ne 's/\s*\([0-9]\+\)\s*md$/\1/p' /proc/devices)
@@ -49,9 +54,19 @@ md_assemble()
else
mdconf="-c partitions"
fi
if test -n "$container"; then
case "$container" in
"")
;;
/dev/*)
mdadm -A $mdconf $container
;;
[0-9a-f]*[0-9a-f])
mdadm -A $mdconf --uuid="$container" /dev/md/container
fi
;;
*)
echo "unrecognized container for $dev: $container"
;;
esac
mdadm -A $mdconf $mdarg "$dev"
}