Blame SOURCES/0100-docs-Add-grub-boot-indeterminate.service-example.patch

5593c8
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
5593c8
From: Hans de Goede <hdegoede@redhat.com>
5593c8
Date: Tue, 19 Jun 2018 15:20:54 +0200
5593c8
Subject: [PATCH] docs: Add grub-boot-indeterminate.service example
5593c8
5593c8
This is an example service file, for use from
5593c8
/lib/systemd/system/system-update.target.wants
5593c8
to increment the boot_indeterminate variable when
5593c8
doing offline updates.
5593c8
5593c8
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
5593c8
---
5593c8
 docs/grub-boot-indeterminate.service | 11 +++++++++++
5593c8
 1 file changed, 11 insertions(+)
5593c8
 create mode 100644 docs/grub-boot-indeterminate.service
5593c8
5593c8
diff --git a/docs/grub-boot-indeterminate.service b/docs/grub-boot-indeterminate.service
5593c8
new file mode 100644
d3c3ab
index 00000000000..6c8dcb186b6
5593c8
--- /dev/null
5593c8
+++ b/docs/grub-boot-indeterminate.service
5593c8
@@ -0,0 +1,11 @@
5593c8
+[Unit]
5593c8
+Description=Mark boot as indeterminate
5593c8
+DefaultDependencies=false
5593c8
+Requires=sysinit.target
5593c8
+After=sysinit.target
5593c8
+Wants=system-update-pre.target
5593c8
+Before=system-update-pre.target
5593c8
+
5593c8
+[Service]
5593c8
+Type=oneshot
5593c8
+ExecStart=/usr/bin/grub2-editenv - incr boot_indeterminate