|
Harald Hoyer |
53e990 |
From d17e0fcd431e823c3f93bbcff8e853578d6bfdc9 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
53e990 |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
53e990 |
Date: Thu, 21 Jun 2012 14:10:41 +0200
|
|
Harald Hoyer |
53e990 |
Subject: [PATCH] systemd: add ConditionPathExists=/etc/initrd-release to
|
|
Harald Hoyer |
53e990 |
services
|
|
Harald Hoyer |
53e990 |
|
|
Harald Hoyer |
53e990 |
---
|
|
Harald Hoyer |
53e990 |
modules.d/98systemd/dracut-cmdline.service | 1 +
|
|
Harald Hoyer |
53e990 |
modules.d/98systemd/dracut-initqueue.service | 1 +
|
|
Harald Hoyer |
53e990 |
modules.d/98systemd/dracut-pre-pivot.service | 1 +
|
|
Harald Hoyer |
53e990 |
modules.d/98systemd/dracut-pre-trigger.service | 1 +
|
|
Harald Hoyer |
53e990 |
modules.d/98systemd/dracut-pre-udev.service | 1 +
|
|
Harald Hoyer |
53e990 |
5 files changed, 5 insertions(+)
|
|
Harald Hoyer |
53e990 |
|
|
Harald Hoyer |
53e990 |
diff --git a/modules.d/98systemd/dracut-cmdline.service b/modules.d/98systemd/dracut-cmdline.service
|
|
Harald Hoyer |
53e990 |
index 938ccbe..c84f62b 100644
|
|
Harald Hoyer |
53e990 |
--- a/modules.d/98systemd/dracut-cmdline.service
|
|
Harald Hoyer |
53e990 |
+++ b/modules.d/98systemd/dracut-cmdline.service
|
|
Harald Hoyer |
53e990 |
@@ -23,6 +23,7 @@ StandardInput=null
|
|
Harald Hoyer |
53e990 |
StandardOutput=syslog
|
|
Harald Hoyer |
53e990 |
StandardError=syslog+console
|
|
Harald Hoyer |
53e990 |
KillMode=process
|
|
Harald Hoyer |
53e990 |
+ConditionPathExists=/etc/initrd-release
|
|
Harald Hoyer |
53e990 |
|
|
Harald Hoyer |
53e990 |
# Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash
|
|
Harald Hoyer |
53e990 |
# terminates cleanly.
|
|
Harald Hoyer |
53e990 |
diff --git a/modules.d/98systemd/dracut-initqueue.service b/modules.d/98systemd/dracut-initqueue.service
|
|
Harald Hoyer |
53e990 |
index 31fe9e4..4fde539 100644
|
|
Harald Hoyer |
53e990 |
--- a/modules.d/98systemd/dracut-initqueue.service
|
|
Harald Hoyer |
53e990 |
+++ b/modules.d/98systemd/dracut-initqueue.service
|
|
Harald Hoyer |
53e990 |
@@ -22,6 +22,7 @@ StandardInput=null
|
|
Harald Hoyer |
53e990 |
StandardOutput=syslog
|
|
Harald Hoyer |
53e990 |
StandardError=syslog+console
|
|
Harald Hoyer |
53e990 |
KillMode=process
|
|
Harald Hoyer |
53e990 |
+ConditionPathExists=/etc/initrd-release
|
|
Harald Hoyer |
53e990 |
|
|
Harald Hoyer |
53e990 |
# Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash
|
|
Harald Hoyer |
53e990 |
# terminates cleanly.
|
|
Harald Hoyer |
53e990 |
diff --git a/modules.d/98systemd/dracut-pre-pivot.service b/modules.d/98systemd/dracut-pre-pivot.service
|
|
Harald Hoyer |
53e990 |
index e61750b..38d252d 100644
|
|
Harald Hoyer |
53e990 |
--- a/modules.d/98systemd/dracut-pre-pivot.service
|
|
Harald Hoyer |
53e990 |
+++ b/modules.d/98systemd/dracut-pre-pivot.service
|
|
Harald Hoyer |
53e990 |
@@ -21,6 +21,7 @@ StandardInput=null
|
|
Harald Hoyer |
53e990 |
StandardOutput=syslog
|
|
Harald Hoyer |
53e990 |
StandardError=syslog+console
|
|
Harald Hoyer |
53e990 |
KillMode=process
|
|
Harald Hoyer |
53e990 |
+ConditionPathExists=/etc/initrd-release
|
|
Harald Hoyer |
53e990 |
|
|
Harald Hoyer |
53e990 |
# Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash
|
|
Harald Hoyer |
53e990 |
# terminates cleanly.
|
|
Harald Hoyer |
53e990 |
diff --git a/modules.d/98systemd/dracut-pre-trigger.service b/modules.d/98systemd/dracut-pre-trigger.service
|
|
Harald Hoyer |
53e990 |
index b06d17f..97c505d 100644
|
|
Harald Hoyer |
53e990 |
--- a/modules.d/98systemd/dracut-pre-trigger.service
|
|
Harald Hoyer |
53e990 |
+++ b/modules.d/98systemd/dracut-pre-trigger.service
|
|
Harald Hoyer |
53e990 |
@@ -23,6 +23,7 @@ StandardInput=null
|
|
Harald Hoyer |
53e990 |
StandardOutput=syslog
|
|
Harald Hoyer |
53e990 |
StandardError=syslog+console
|
|
Harald Hoyer |
53e990 |
KillMode=process
|
|
Harald Hoyer |
53e990 |
+ConditionPathExists=/etc/initrd-release
|
|
Harald Hoyer |
53e990 |
|
|
Harald Hoyer |
53e990 |
# Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash
|
|
Harald Hoyer |
53e990 |
# terminates cleanly.
|
|
Harald Hoyer |
53e990 |
diff --git a/modules.d/98systemd/dracut-pre-udev.service b/modules.d/98systemd/dracut-pre-udev.service
|
|
Harald Hoyer |
53e990 |
index d867b38..9b83e3e 100644
|
|
Harald Hoyer |
53e990 |
--- a/modules.d/98systemd/dracut-pre-udev.service
|
|
Harald Hoyer |
53e990 |
+++ b/modules.d/98systemd/dracut-pre-udev.service
|
|
Harald Hoyer |
53e990 |
@@ -23,6 +23,7 @@ StandardInput=null
|
|
Harald Hoyer |
53e990 |
StandardOutput=syslog
|
|
Harald Hoyer |
53e990 |
StandardError=syslog+console
|
|
Harald Hoyer |
53e990 |
KillMode=process
|
|
Harald Hoyer |
53e990 |
+ConditionPathExists=/etc/initrd-release
|
|
Harald Hoyer |
53e990 |
|
|
Harald Hoyer |
53e990 |
# Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash
|
|
Harald Hoyer |
53e990 |
# terminates cleanly.
|