checked in (request 29764)

OBS-URL: https://build.opensuse.org/package/show/Base:System/mdadm?expand=0&rev=13
This commit is contained in:
OBS User autobuild
2010-01-18 13:08:57 +00:00
committed by Git OBS Bridge
parent b593e3099a
commit 410dbf2ce6
5 changed files with 45 additions and 81 deletions

View File

@@ -18,11 +18,6 @@
# 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)
@@ -54,19 +49,9 @@ md_assemble()
else
mdconf="-c partitions"
fi
case "$container" in
"")
;;
/dev/*)
mdadm -A $mdconf $container
;;
[0-9a-f]*[0-9a-f])
if test -n "$container"; then
mdadm -A $mdconf --uuid="$container" /dev/md/container
;;
*)
echo "unrecognized container for $dev: $container"
;;
esac
fi
mdadm -A $mdconf $mdarg "$dev"
}