SHA256
1
0
forked from pool/mdadm

Accepting request 29763 from home:michal-m:branches:Base:System

Copy from home:michal-m:branches:Base:System/mdadm via accept of submit request 29763 revision 2.
Request was accepted with message:
Reviewed ok

OBS-URL: https://build.opensuse.org/request/show/29763
OBS-URL: https://build.opensuse.org/package/show/Base:System/mdadm?expand=0&rev=12
This commit is contained in:
Michal Marek
2010-01-15 16:44:42 +00:00
committed by Git OBS Bridge
parent b9f2c8ae10
commit b593e3099a
5 changed files with 81 additions and 45 deletions

10
boot.md
View File

@@ -98,6 +98,14 @@ 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 "
@@ -110,7 +118,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 -k md_mod 2>&1 | :
[ ! -f /proc/mdstat -a -x /sbin/modprobe ] && /sbin/modprobe md_mod
[ -f /proc/mdstat ] || _rc_exit 5 "... no MD support in kernel "
# Wait for udev to settle