dracut-systemd/dracut-initqueue: only start service if really needed

Only start the dracut-initqueue.service, if the dracut_need_initqueue
command was issued on creation or later on set.
master
Harald Hoyer 2015-07-13 10:51:47 +02:00
parent 968280e370
commit e47907cc6b
3 changed files with 3 additions and 5 deletions

View File

@ -140,4 +140,6 @@ install() {
cache_dump cache_restore cache_check cache_repair \
era_check era_dump era_invalidate era_restore
fi

dracut_need_initqueue
}

View File

@ -132,4 +132,5 @@ install() {
fi
fi
inst_hook pre-shutdown 30 "$moddir/mdmon-pre-shutdown.sh"
dracut_need_initqueue
}

View File

@ -17,11 +17,6 @@ After=systemd-udev-trigger.service
Wants=systemd-udev-trigger.service
ConditionPathExists=/usr/lib/initrd-release
ConditionPathExists=|/lib/dracut/need-initqueue
ConditionPathExistsGlob=|/lib/dracut/hooks/initqueue/*.sh
ConditionPathExistsGlob=|/lib/dracut/hooks/initqueue/settled/*.sh
ConditionPathExistsGlob=|/lib/dracut/hooks/initqueue/finished/*.sh
ConditionPathExistsGlob=|/lib/dracut/hooks/initqueue/online/*.sh
ConditionPathExistsGlob=|/lib/dracut/hooks/initqueue/timeout/*.sh
ConditionKernelCommandLine=|rd.break=initqueue

[Service]