Posts by electricOzone

    For the time being, I'm able to get things running by using autostart.sh. I would still prefer to use systemd, but if anyone else is in the same boat as me you should be able to use this method as well.

    /storage/.config/autostart.sh

    Display Spoiler
    Bash
    #!/bin/sh
    (sleep 5; \
      sshfs -o allow_other,default_permissions,reconnect,ServerAliveInterval=5,ServerAliveCountMax=3,IdentityFile=/storage/.ssh/id_ed25519_sshfs_user [email protected]:/files/Music /storage/music; \
      sshfs -o allow_other,default_permissions,reconnect,ServerAliveInterval=5,ServerAliveCountMax=3,IdentityFile=/storage/.ssh/id_ed25519_sshfs_user [email protected]:/files/Pictures /storage/pictures; \
      sshfs -o allow_other,default_permissions,reconnect,ServerAliveInterval=5,ServerAliveCountMax=3,IdentityFile=/storage/.ssh/id_ed25519_sshfs_user [email protected]:/files/Videos /storage/videos; \
      sshfs -o allow_other,default_permissions,reconnect,ServerAliveInterval=5,ServerAliveCountMax=3,IdentityFile=/storage/.ssh/id_ed25519_sshfs_user [email protected]:/files/zMultimedia /storage/zMultimedia; \  
    )&


    Should I post about this issue over in bug reports? Should this post be moved there? I'd like to avoid breaking any duplicate post rules :)

    Furthermore, changing the What= section to

    Display Spoiler
    Code
    What=/storage/.kodi/addons/virtual.network-tools/bin/sshfs#[email='[email protected]'][/email]:/files/Videos/Movies

    gets me one step further as I can actually see LibreELEC enter preauth with the remote server, but it still fails with systemctl status output of read: Connection reset by peer. So I do believe there is some truth to what you're saying about the PATH issues vpeter. However, it appears that something about the unit file is still not being interpreted correctly, as we're seeing the Connection reset by peer message.

    Thanks CvH, I meant to remove uid & gid from this config since everything is root on LibreELEC. I also had tried before to remove all extraneous options from the config, but always received the same error.

    vpeter, I tried setting Type=auto and removing Type= entirely, but I'm getting the same systemctl status output as before.

    Incidentally, if I remove Type= and try the deprecated method of

    Code
    What=sshfs#[email protected]:/files/Videos/Movies

    the output of systemctl status is somewhat different:

    Display Spoiler

    I can confirm this directory definitely does exist:

    Display Spoiler
    Code
    LibreELEC:~ # ls -la /storage/videos/
    total 4
    drwxr-xr-x    4 root     root          1024 Aug 24 10:51 .
    drwxr-xr-x   15 root     root          1024 Sep  3 16:59 ..
    drwxr-xr-x    2 root     root          1024 Aug 24 09:26 Movies

    After installing the LibreELEC network-tools addon, I am able to successfully use the sshfs command in the CLI to mount a remote media directory. However, when attempting to use a systemd unit file to automatically mount the remote folder at boot, I receive an error. I am currently using the same options in unit files on several of my other machines, although they are using slightly newer versions of systemd.

    /storage/.config/system.d/storage-videos-Movies.mount

    Display Spoiler


    systemctl start storage-videos-Movies.mount

    systemctl status storage-videos-Movies.mount

    Display Spoiler


    Running the following command is successful:

    Display Spoiler
    Code
    sshfs -o reconnect,ServerAliveInterval=5,ServerAliveCountMax=3,IdentityFile=/storage/.ssh/id_ed25519_sshfs_user [email protected]:/files/Videos/Movies /storage/videos/Movies