fix: Improve bios update disabling feature to work similarly to foxnet/bios/INHIBIT file in SteamOS.

This commit is contained in:
Kyle Gospodnetich 2023-11-06 01:31:40 -08:00
parent 1e222d1d75
commit bd200632a6
2 changed files with 14 additions and 0 deletions

View File

@ -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"

View File

@ -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