Skip to content

Commit

Permalink
fix: Improve bios update disabling feature to work similarly to foxne…
Browse files Browse the repository at this point in the history
…t/bios/INHIBIT file in SteamOS.
  • Loading branch information
KyleGospo committed Nov 6, 2023
1 parent 1e222d1 commit bd20063
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions spec_files/jupiter-hw-support/biosupdate.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
--- a/usr/bin/jupiter-biosupdate
+++ b/usr/bin/jupiter-biosupdate
@@ -141,6 +141,10 @@
# Die early if inhibited
[[ ! -f $BIOS_INHIBIT_FILE ]] || die "Bios updates inhibited, no action ($BIOS_INHIBIT_FILE)"

+if ! systemctl is-enabled jupiter-biosupdate.service; then
+ die "Bios updates inhibited, no action (Service disabled)"
+fi
+
# Print action
modestring="Performing"
[[ -z $checkmode ]] || modestring="Checking for"
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Patch4: user.patch
Patch5: bazzite-btrfs.patch
Patch6: systemd-run.patch
Patch7: priv-write.patch
Patch8: biosupdate.patch

Requires: python3
Requires: python3-evdev
Expand Down

0 comments on commit bd20063

Please sign in to comment.