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:
committed by
Git OBS Bridge
parent
b593e3099a
commit
410dbf2ce6
10
boot.md
10
boot.md
@@ -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
|
||||
|
Reference in New Issue
Block a user