projects
/
platform
/
upstream
/
dracut.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b94c520
)
90mdraid: only switch mdmon to new root, if an instance is running
author
Harald Hoyer
<harald@redhat.com>
Tue, 15 Sep 2009 07:27:02 +0000
(09:27 +0200)
committer
Harald Hoyer
<harald@redhat.com>
Tue, 15 Sep 2009 13:00:23 +0000
(15:00 +0200)
modules.d/90mdraid/mdmon-pre-pivot.sh
patch
|
blob
|
history
diff --git
a/modules.d/90mdraid/mdmon-pre-pivot.sh
b/modules.d/90mdraid/mdmon-pre-pivot.sh
index
b1f379f
..
a542313
100644
(file)
--- a/
modules.d/90mdraid/mdmon-pre-pivot.sh
+++ b/
modules.d/90mdraid/mdmon-pre-pivot.sh
@@
-1,3
+1,5
@@
# switch any mdmon instances to newroot
-[ -f /etc/mdadm.conf ] && /sbin/mdmon /proc/mdstat $NEWROOT
+if pidof mdmon >/dev/null 2>&1; then
+ /sbin/mdmon /proc/mdstat $NEWROOT
+fi