diff options
author | Harald Hoyer <harald@redhat.com> | 2009-09-16 16:10:09 +0200 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2009-09-16 16:10:09 +0200 |
commit | 24bac034d16207186a78ec8d76464eb4d2c9d734 (patch) | |
tree | 85fcabfacf3b83d29d2a6708bcbea62f09eda2f9 /modules.d | |
parent | 094097fab3e2819d19ed71b3128d7bc62cbed87a (diff) | |
download | dracut-24bac034d16207186a78ec8d76464eb4d2c9d734.tar.gz dracut-24bac034d16207186a78ec8d76464eb4d2c9d734.tar.bz2 dracut-24bac034d16207186a78ec8d76464eb4d2c9d734.zip |
65-md-incremental-imsm.rules: check if md raid is already running
Diffstat (limited to 'modules.d')
-rw-r--r-- | modules.d/90mdraid/65-md-incremental-imsm.rules | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules.d/90mdraid/65-md-incremental-imsm.rules b/modules.d/90mdraid/65-md-incremental-imsm.rules index 750a794b..93715f52 100644 --- a/modules.d/90mdraid/65-md-incremental-imsm.rules +++ b/modules.d/90mdraid/65-md-incremental-imsm.rules @@ -58,6 +58,9 @@ GOTO="end_raidstart" LABEL="do_raidstart" +# check if array is not inactive anymore +TEST=="md/array_state", ATTR{md/array_state}!="|inactive", GOTO="end_raidstart" + RUN+="/bin/sh -c 'ln -s /sbin/md_finished.sh /initqueue-finished/md_finished.sh;/sbin/initqueue --settled --onetime --unique /sbin/mdraid_start'" LABEL="end_raidstart" |