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

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