mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-03-16 16:20:48 +00:00
fix: Allow more time for SD card mounting, required by some hardware.
This commit is contained in:
parent
c26a920f53
commit
810b84e706
@ -23,6 +23,7 @@ Patch8: gnome.patch
|
||||
Patch9: fstrim.patch
|
||||
Patch10: cursor-path.patch
|
||||
Patch11: ntfs.patch
|
||||
Patch12: more-time.patch
|
||||
|
||||
Requires: python3
|
||||
Requires: python3-evdev
|
||||
|
@ -24,6 +24,7 @@ Patch7: biosupdate.patch
|
||||
Patch8: gnome.patch
|
||||
Patch9: fstrim.patch
|
||||
Patch10: ntfs.patch
|
||||
Patch11: more-time.patch
|
||||
|
||||
Requires: jq
|
||||
|
||||
|
13
spec_files/jupiter-hw-support/more-time.patch
Normal file
13
spec_files/jupiter-hw-support/more-time.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/usr/lib/hwsupport/block-device-event.sh b/usr/lib/hwsupport/block-device-event.sh
|
||||
index 132d94c..f3606b5 100755
|
||||
--- a/usr/lib/hwsupport/block-device-event.sh
|
||||
+++ b/usr/lib/hwsupport/block-device-event.sh
|
||||
@@ -40,7 +40,7 @@ do_add()
|
||||
detected_us=$(make_dbus_udisks_call get-property data t "${drive}" Drive TimeMediaDetected)
|
||||
# The 5 seconds window is taken from the original GNOME fix that inspired this one
|
||||
# https://gitlab.gnome.org/GNOME/gvfs/-/commit/b4800b987b4a8423a52306c9aef35b3777464cc5
|
||||
- if (( detected_us / 1000000 + 5 < current_time )); then
|
||||
+ if (( detected_us / 1000000 + 30 < current_time )); then
|
||||
echo "Skipping mounting /dev/${DEVBASE} because it has not been inserted recently" >&2
|
||||
exit 0
|
||||
fi
|
Loading…
x
Reference in New Issue
Block a user