Buildroot is a simple, efficient and easy-to-use tool to generate embedded Linux systems through cross-compilation. Forked from https://git.busybox.net/buildroot/
Other
38
stars
59
forks
source link
pluto automounter: Retry automount in case device driver isn't ready #55
The automounter can try to mount the device prematurely. Catch this
kind of error output and retry a few times with some time in between
in case we can successfully mount this device.
I've had problems where the automount fails at bootup (around 40% of the time) with a message like the following on stderr from the mount command inside the automounter:
mount: mounting /dev/sda1 on /media/sda1 failed: Device or resource busy
However, adding in a simple retry loop fixes it. I suspect the device node isn't fully ready for traffic at the driver side when it gets enumerated.
The automounter can try to mount the device prematurely. Catch this kind of error output and retry a few times with some time in between in case we can successfully mount this device.
I've had problems where the automount fails at bootup (around 40% of the time) with a message like the following on stderr from the mount command inside the automounter:
However, adding in a simple retry loop fixes it. I suspect the device node isn't fully ready for traffic at the driver side when it gets enumerated.