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

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