msm-modem-uim-selection can significantly delay boot
Describe your issue
What's the expected behaviour?
The boot process isn't paused to wait for the modem to appear
What's the current behaviour?
Sometimes the boot process can be delayed by 10+ seconds while the modem appears, if the modem fails to come up for some reason then the boot process can be delayed for up to 45 seconds.
How to reproduce your issue?
Boot postmarketOS on a device using a QRTR modem.
The msm-modem-uim-selection script blocks the boot process while running, and employs heavy use of sleep
to wait for devices to appear. Currently if your device doesn't have a SIM installed then the boot process will be delayed by an extra 10 seconds while it waits for your SIM card.
What device are you using?
oneplus-enechilada
On what postmarketOS version did you encounter the issue?
-
edge ( master
branch) -
v21.06
On what environment did you encounter the issue?
Phone environments
-
Phosh -
Plasma Mobile -
Sxmo
Other
-
No environment -
GNOME -
KDE Plasma -
Kodi -
MATE -
Shelli -
Sway -
Weston -
Xfce4 -
fbkeyboard -
i3wm
How did you get postmarketOS image?
-
from https://images.postmarketos.org -
I built it using pmbootstrap -
It was preinstalled on my device
What's the build date of the image? (in yyyy-mm-dd format)
Additional information
Cc: @TravMurav