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
parent
968280e370
commit
e47907cc6b
|
@ -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
|
||||
}
|
||||
|
|
|
@ -132,4 +132,5 @@ install() {
|
|||
fi
|
||||
fi
|
||||
inst_hook pre-shutdown 30 "$moddir/mdmon-pre-shutdown.sh"
|
||||
dracut_need_initqueue
|
||||
}
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue