Hi all,

I cannot get systemd to find the 'sshfs' binary needed to make this
configuration work:

  systemd.mounts = [
    { what = "bfo@whitetip.local:/";
      where = "/home/bfo/mnt/whitetip.local";
      type = "fuse.sshfs";
      options =
"_netdev,users,idmap=user,IdentityFile=/home/user/.ssh/id_rsa,allow_other,reconnect";
      unitConfig.Environment = "PATH=${pkgs.sshfsFuse}/bin";
    }
  ];

The result is "/bin/sh: sshfs: command not found", as can be seen
below my signature.

Any suggestions?

-- 
Best regards,
Bjørn Forsman



$ systemctl status home-bfo-mnt-whitetip.local.mount
● home-bfo-mnt-whitetip.local.mount - /home/bfo/mnt/whitetip.local
   Loaded: loaded
(/nix/store/9skv7lzma7gh7cc74jmf9r3jy2rw8l32-unit-home-bfo-mnt-whitetip.local.mount/home-bfo-mnt-whitetip.local.mount;
bad; vendor preset: enabled)
   Active: failed (Result: exit-code) since sø. 2016-09-18 18:02:09 CEST; 7s ago
    Where: /home/bfo/mnt/whitetip.local
     What: bfo@whitetip.local:/
  Process: 28267
ExecMount=/nix/store/42fysnk7hsi5hkyk133w3qk0rc7mmi92-util-linux-2.28.1-bin/bin/mount
bfo@whitetip.local:/ /home/bfo/mnt/whitetip.local -t fuse.sshfs -o
_netdev,users,idmap=user,IdentityFile=/home/user/.ssh/id_rsa,allow_other,reconnect

sep. 18 18:02:09 mini systemd[1]: Mounting /home/bfo/mnt/whitetip.local...
sep. 18 18:02:09 mini mount[28267]: /bin/sh: sshfs: command not found
sep. 18 18:02:09 mini systemd[1]: home-bfo-mnt-whitetip.local.mount:
Mount process exited, code=exited status=127
sep. 18 18:02:09 mini systemd[1]: Failed to mount /home/bfo/mnt/whitetip.local.
sep. 18 18:02:09 mini systemd[1]: home-bfo-mnt-whitetip.local.mount:
Unit entered failed state.



$ systemctl cat home-bfo-mnt-whitetip.local.mount
# 
/nix/store/9skv7lzma7gh7cc74jmf9r3jy2rw8l32-unit-home-bfo-mnt-whitetip.local.mount/home-bfo-mnt-whitetip.local.mount
[Unit]
Environment=PATH=/nix/store/6rwfz93iiax88a7x9nk9wm0lqzca6gjq-sshfs-fuse-2.7/bin

[Mount]
Options=_netdev,users,idmap=user,IdentityFile=/home/user/.ssh/id_rsa,allow_other,reconnect
Type=fuse.sshfs
What=bfo@whitetip.local:/
Where=/home/bfo/mnt/whitetip.local
_______________________________________________
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to