summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbuild-initramfs.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/build-initramfs.sh b/build-initramfs.sh
index 8bc8f2fa..767a683a 100755
--- a/build-initramfs.sh
+++ b/build-initramfs.sh
@@ -399,6 +399,8 @@ initialize_dracut() {
{
echo "[Unit]"
echo "Description=${_desc}"
+ echo "DefaultDependencies=no"
+ echo "Before=initrd-switch-root.target"
[ -n "${_wants}" ] && echo "Wants=${_wants[*]}"
[ -n "${_requires}" ] && echo "Requires=${_requires[*]}"
[ -n "${_before}" ] && echo "Before=${_before[*]}"
@@ -408,6 +410,8 @@ initialize_dracut() {
echo "Type=oneshot"
echo "RemainAfterExit=yes"
echo "ExecStart=/usr/local/slx-services/${_name}.sh"
+ echo "KillMode=process"
+ echo "KillSignal=SIGHUP"
} > "${_tmpfile}"
inst_simple "${_tmpfile}" \
"${systemdsystemunitdir}/${_name}.service" || exit 10