SHA256
1
0
forked from pool/mdadm

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

10
boot.md
View File

@@ -98,14 +98,6 @@ case "$1" in
start)
echo -n "Starting MD Raid "
# create the /var/run/mdadm symlink if needed
mkdir -p /dev/.mdadm
if test ! /dev/.mdadm -ef /var/run/mdadm; then
rm -rf /var/run/mdadm
ln -s /dev/.mdadm /var/run/mdadm
fi
# restart mdmon (exits silently if there is nothing to monitor)
/sbin/mdmon /proc/mdstat /
# Check for existence of needed config file and read it
[ -r $mdadm_SYSCONFIG ] || _rc_exit 6 "... $mdadm_SYSCONFIG not existing "
@@ -118,7 +110,7 @@ case "$1" in
[ -x $mdadm_BIN ] || _rc_exit 5 "... $mdadm_BIN not installed "
# Try to load md_mod
[ ! -f /proc/mdstat -a -x /sbin/modprobe ] && /sbin/modprobe md_mod
[ ! -f /proc/mdstat -a -x /sbin/modprobe ] && /sbin/modprobe -k md_mod 2>&1 | :
[ -f /proc/mdstat ] || _rc_exit 5 "... no MD support in kernel "
# Wait for udev to settle