I recently began playing around with Fedora and am actually enjoying it quite well. One thing I noticed, however, is that upon booting the camera, it is failing to mount my CIFS shares because the NetworkManager will simply not wait for the network to actually be ready before processing the CIFS shares. After a ton of research I finally found a resolution.
Under su conditions, create a file called, "really-wait-online.service" inside of "/etc/systemd/system". Inside of this file, include the following text:
Description=Really wait for the network
ExecStart=/bin/bash -c "until ifconfig | grep 'inet 10.1'; do continue; done"
Now, you're going to need to know what your internal IP address scheme is. As mentioned above, mine is 10.1.*.*. Most home networks are 192.168.*.* - be sure you know which one yours is, as we will only need the first two octets.
You need to edit the "ExecStart=" line so that after "ifconfig | grep 'inet" you type your first two IP address octets. Also make a manual edit so that the "ExecStart=" line is ALL ON ONE LINE. I cannot stress that enough. WordPress is a bit ridiculous in that it drops "continue; done'" to the next line, however that needs to be moved back up to the line before it, so that it follows directly after "'10.1'; do". If you do not move that back up, the daemon will process it accordingly and break on bootup. One last bit of edits you might need to make include modifying the quote symbols to actual quote symbols (if you copy/pasted the above instead of manually typing it out). WordPress is stupid in that it also modifies quotes to being the italicized quotes (not sure what the actual name of them are, and too lazy to look it up).
Once you've created this file, go ahead and issue "systemctl enable really-wait-online.system" in the terminal and then reboot the computer.
After your computer comes back up, you should be able to cd into the mount directory of your CIFS share and it should now show up without issue.
No comments have been posted to this article yet.