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

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