#5 Add support for setting boot_success / boot_indeterminate grubenv flags
Closed 3 years ago by jwrdegoede. Opened 4 years ago by jwrdegoede.
rpms/ jwrdegoede/grub2 master  into  master

file modified
@@ -40,6 +40,8 @@ 

  BuildRequires:	texinfo

  BuildRequires:	dejavu-sans-fonts

  BuildRequires:	help2man

+ # For %%_userunitdir macro

+ BuildRequires:	systemd

  %ifarch %{efi_arch}

  BuildRequires:	pesign >= 0.99-8

@@ -211,6 +213,20 @@ 

  install -d -m 0755 %{buildroot}%{_sysconfdir}/kernel/install.d/

  install -m 0644 /dev/null %{buildroot}%{_sysconfdir}/kernel/install.d/20-grubby.install

  install -m 0644 /dev/null %{buildroot}%{_sysconfdir}/kernel/install.d/90-loaderentry.install

+ # Install grub2-set-bootflag polkit policy

+ install -D -m 0755 -t %{buildroot}%{_datadir}/polkit-1/actions \

+ 	docs/org.gnu.grub.policy

+ # Install systemd user service to set the boot_success flag

+ install -D -m 0755 -t %{buildroot}%{_userunitdir} \

+ 	docs/grub-boot-success.{timer,service}

+ install -d -m 0755 %{buildroot}%{_userunitdir}/timers.target.wants

+ ln -s ../grub-boot-success.timer \

+ 	%{buildroot}%{_userunitdir}/timers.target.wants

+ # Install systemd system-update unit to set boot_indeterminate for offline-upd

+ install -D -m 0755 -t %{buildroot}%{_unitdir} docs/grub-boot-indeterminate.service

+ install -d -m 0755 %{buildroot}%{_unitdir}/system-update.target.wants

+ ln -s ../grub-boot-indeterminate.service \

+ 	%{buildroot}%{_unitdir}/system-update.target.wants


  # Don't run debuginfo on all the grub modules and whatnot; it just

  # rejects them, complains, and slows down extraction.
@@ -355,6 +371,12 @@ 

  %attr(0644,root,root) %ghost %config(noreplace) %{_sysconfdir}/default/grub

  %config %{_sysconfdir}/grub.d/??_*


+ %{_datadir}/polkit-1/actions/org.gnu.grub.policy

+ %{_userunitdir}/grub-boot-success.timer

+ %{_userunitdir}/grub-boot-success.service

+ %{_userunitdir}/timers.target.wants

+ %{_unitdir}/grub-boot-indeterminate.service

+ %{_unitdir}/system-update.target.wants



@@ -457,6 +479,10 @@ 




+ * Mon Jul 16 2018 Hans de Goede <hdegoede@redhat.com>

+ - Make the user session automatically set the boot_success grubenv flag

+ - Make offline-updates increment the boot_indeterminate grubenv variable


  * Fri Jul 13 2018 Peter Jones <pjones@redhat.com> - 2.02-42

  - Revert broken moduledir fix *again*.


Add support for making the user session automatically set the boot_success
flag and make offline-updates increment the boot_indeterminate grubenv var.

1) This requires the latest rhboot/fedora-29 branch + https://github.com/rhboot/grub2/pull/13
2) I've not bumped the release field, I've left that for you to do when you kick-off a new build (with possibly also other changes included).

rebased onto 9c0f567c8821dd81a8c61ac029d803fa0108c699

4 years ago

rebased onto 69df269

4 years ago

I've just pushed a new version to deal with the system-update-pre.target changes in upstream systemd. This is good to go now.

rebased onto e8a6d3e

3 years ago


Thank you for doing the new grub package including all my changes from rhboot/grub2, the changes from this pullreq are still necessary to get the necessary systemd integration bits into place for boot_success marking on regular boot and boot_indeterminate incrementing after an offline-updates boot.

I've just pushed a new version rebased on top of the recent changes, this is ready for merging now.



Changes looks good to me.

This is merged now, closing.

Pull-Request has been closed by jwrdegoede

3 years ago