mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-03-29 22:20:21 +00:00
fix: Improve bios update disabling feature to work similarly to foxnet/bios/INHIBIT file in SteamOS.
This commit is contained in:
parent
1e222d1d75
commit
bd200632a6
13
spec_files/jupiter-hw-support/biosupdate.patch
Normal file
13
spec_files/jupiter-hw-support/biosupdate.patch
Normal 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"
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user