Skip to content

Commit

Permalink
fix: Allow more time for SD card mounting, required by some hardware.
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleGospo committed Jul 19, 2024
1 parent c26a920 commit 810b84e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Patch7: biosupdate.patch
Patch8: gnome.patch
Patch9: fstrim.patch
Patch10: ntfs.patch
Patch11: more-time.patch

Requires: jq

Expand Down
13 changes: 13 additions & 0 deletions spec_files/jupiter-hw-support/more-time.patch
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 810b84e

Please sign in to comment.