D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Control Systems

 

On 07/04/2020 15:33, Simon Avery wrote:

Ah, I'm guessing it interpreted /etc/fstab and tried to mount the NFS shares before the local filesystem was ready. 

It's a nice trick that, but not exactly endearing

No, it ignored fstab completely as far as I know. Of course you may be right, how would I fix that? Everything that worked perfectly well before systemd shut up shop. In the end I had to write a .mount file for every NFS share, then .automount files for each of them, and then put shortcuts to the shares on the desktop. Then after all that rigmarole I had the functionality back that I had before systemd arrived.

Apologies, I got that slightly wrong. It was NFS shared trying to be mounted /after/ the local file system, but /before/ network was ready.

systemd will convert all entries in /etc/fstab into .mount files automatically on boot - search for these with: systemctl | grep “.mount” 

I think (not at work so can't check my notes) - I added something like: After = network-online.target

However - this was over a year ago. I don't think I changed our build scripts for this, and I've since build dozens of machines without doing this and even though we use NFS a lot, it's not something I've had a problem with for some time (hence my vagueness) - so I guess systemd has gotten a bit smarter about that particular thing. 

 



-- 
The Mailing List for the Devon & Cornwall LUG
https://mailman.dcglug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq