summaryrefslogtreecommitdiff
path: root/modules.d/90mdraid
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2013-03-26 16:19:00 +0100
committerHarald Hoyer <harald@redhat.com>2013-03-26 16:19:00 +0100
commit6c6d80576562f1b02eddc66ceb60f74b300e36b1 (patch)
treed93a59b01e5920cd93585b7c7069d78b4d9f13eb /modules.d/90mdraid
parent44f870be42fc687f0e48a822a2cad109962d93a6 (diff)
downloaddracut-6c6d80576562f1b02eddc66ceb60f74b300e36b1.tar.gz
dracut-6c6d80576562f1b02eddc66ceb60f74b300e36b1.tar.bz2
dracut-6c6d80576562f1b02eddc66ceb60f74b300e36b1.zip
use systemd*dir variables everywhere
Diffstat (limited to 'modules.d/90mdraid')
-rwxr-xr-xmodules.d/90mdraid/module-setup.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules.d/90mdraid/module-setup.sh b/modules.d/90mdraid/module-setup.sh
index 70c27dd6..8d63028d 100755
--- a/modules.d/90mdraid/module-setup.sh
+++ b/modules.d/90mdraid/module-setup.sh
@@ -88,8 +88,10 @@ install() {
inst_hook shutdown 30 "$moddir/md-shutdown.sh"
inst_script "$moddir/mdraid-cleanup.sh" /sbin/mdraid-cleanup
inst_script "$moddir/mdraid_start.sh" /sbin/mdraid_start
- if [ -e /lib/systemd/system/mdmon@.service ]; then
- inst_simple /lib/systemd/system/mdmon@.service
+ if dracut_module_included "systemd"; then
+ if [ -e $systemdsystemunitdir/mdmon@.service ]; then
+ inst_simple $systemdsystemunitdir/mdmon@.service
+ fi
fi
inst_hook pre-shutdown 30 "$moddir/mdmon-pre-shutdown.sh"
}