Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Locked thread
Poopernickel
Oct 28, 2005

electricity bad
Fun Shoe
Write a mount helper script and save it to /sbin/mount.(type).

The script could try an NFS mount first, and then fail over to SSHFS. Once you have it working, you should be able to use it as the filesystem type in /etc/fstab, or specify a #type argument.

Here's an example of the syntax for a mount-helper: https://github.com/ncw/rclone/wiki/rclone-fstab-mount-helper-script

oh, also - if you put it in your fstab, you probably want these options: "noauto,nofail,_netdev,x-systemd.automount" and also maybe "nobootwait"

Poopernickel fucked around with this message at 19:33 on Nov 29, 2018

Adbot
ADBOT LOVES YOU

  • Locked thread