I have a small embedded (mips) device which runs a very lightweight Linux.
It is capable of mounting NFS shares (manually by mount command).
However I want to mount it automatically, so I have defined it in the fstab file.
The problem is that the device does not have connection available at the time fstab is processed:
mount: mounting 10.1.1.1:/srv/fs on /nfs failed: Input/output error
Then the system continues to boot (initialize the wifi module, connects to AP, and queries the IP address with udhcpc.
After udhcpc successfully gets the IP address, I can run:
and the /nfs will be mounted successfully.
How can I tell fstab to wait, and retry constantly?
Please note this is a truncated Linux. There is no systemd or ifup scripts available.
Of course, I can run a script on boot which runs 'mount -a' constantly until success, but that's the brute-force-way and I'm looking for something more sophisticated solution if it exists.