mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-01-30 03:32:36 +00:00
fix: Add patch to avoid conflicts with Fedora's trim service
This commit is contained in:
parent
dee6d08c31
commit
ed02a6526c
19
spec_files/jupiter-hw-support/fstrim.patch
Normal file
19
spec_files/jupiter-hw-support/fstrim.patch
Normal file
@ -0,0 +1,19 @@
|
||||
--- a/usr/lib/hwsupport/trim-devices.sh
|
||||
+++ b/usr/lib/hwsupport/trim-devices.sh
|
||||
@@ -78,6 +78,16 @@
|
||||
return;
|
||||
}
|
||||
|
||||
+# If fstrim has been disabled by the end-user, do nothing
|
||||
+if ! systemctl is-enabled fstrim.timer; then
|
||||
+ exit
|
||||
+fi
|
||||
+
|
||||
+# If the upstream fstrim service is currently running, do nothing
|
||||
+if systemctl is-active fstrim.service; then
|
||||
+ exit
|
||||
+fi
|
||||
+
|
||||
# In some cases it is unsafe to trim an sdcard. When we detect this case
|
||||
# lets just trim the partitions on the internal drive which we know are
|
||||
# safe to trim/discard
|
@ -21,6 +21,7 @@ Patch6: systemd-run.patch
|
||||
Patch7: priv-write.patch
|
||||
Patch8: biosupdate.patch
|
||||
Patch9: gnome.patch
|
||||
Patch10: fstrim.patch
|
||||
|
||||
Requires: python3
|
||||
Requires: python3-evdev
|
||||
|
Loading…
x
Reference in New Issue
Block a user