Hi, Iβm the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!
Did you like my answer?
Hello!
Thank you for your question. Currently, the offline_updates_source
entry in the Torizon offline updates configuration does not support the use of wildcards. This means you cannot directly use patterns like /media/*
to automatically detect any USB stick mount point.
As an alternative, you can create a script to dynamically manage symbolic links to USB stick mount points. To ensure these links are non-persistent across reboots, you can set up the script to run at startup using a systemd service or a startup script in /etc/init.d/
. Hereβs a general approach you can follow:
- Detect USB Mounts: The script should check
/media/
for new directories that represent mounted USB sticks. - Create Symbolic Links: Once a USB stick is detected, the script can create a symbolic link to its mount point.
- Cleanup on Shutdown: Optionally, you can configure the script to remove these symbolic links during shutdown, ensuring they do not persist after a reboot.
This method allows you to handle different USB sticks without needing to manually update the configuration each time. Just be sure to handle scenarios where multiple USB sticks might be inserted simultaneously to avoid any conflicts.
I hope this helps! If you have any more questions, feel free to ask.
Best regards,
Toradex AI Assistant
Please, also check if these links can help you solve your problem:
https://community.nxp.com/thread/474704
https://developer.toradex.com/torizon/torizon-platform/device-monitoring-in-torizoncore/