Does not mount by NFS at startup

  • Hello,

    It is a LibreELEC 9.0.1 on RaspberryPi 3.

    I have configured the mount by NFS as in the previous version 8.2.5, where it worked fine, and in version 9.0.1 does not mount on startup.

    The configuration /storage/.config/storage-Media.mount

    When checking the status with systemctl status storage-Media.mount

    But, if once started, I execute systemctl start storage-Media.mount


    When checking again the status with systemctl status storage-Media.mount

    Code
    storage-Media.mount - nfs mount /storage/Media
    Loaded: loaded (/storage/.config/system.d/storage-Media.mount; enabled; vendor preset: disabled)
    Active: active (mounted) since Sun 2019-03-31 18:48:37 CEST; 2s ago
    Where: /storage/Media
    What: 192.168.2.12:/mnt/disco1/Media
    CGroup: /system.slice/storage-Media.mount
    
    Mar 31 18:48:37 LibreELEC systemd[1]: Mounting nfs mount /storage/Media...
    Mar 31 18:48:37 LibreELEC systemd[1]: Mounted nfs mount /storage/Media.

    Does anyone know why to version 8.2.5 this worked and as of version 9.0.x it does not work anymore?

    Does this happen to someone else?

    Thank you very much in advance.

    Wimiti.

    PD: This has been translated from Spanish through Google Translator. Sorry for possible inaccuracies.

    Edited once, last by Wimiti (March 31, 2019 at 7:15 PM).

  • Maybe it fail because you have wrong time?

    Quote

    2018-06-22

    And I see

    Quote

    No route to host

    meaning your network is not yet up? Try to enable "wait for network" in LibreELEC addon settings.

    If you run service manually then it is mounted?

    Code
    systemctl start storage-Media.mount
  • I had already seen it but, in version 8.2.5 the same thing happens and however it does mount it correctly.

    When the storage-Media.service service is launched at the start of both versions, the correct time is not available (the RaspberryPi does not have RTC).

    I think that, although storage-Media.service indicates that it is required and must be executed after network-online.service, it ignores it.

  • Try to enable "wait for network" in LibreELEC addon settings.

    Yes "wait for network" is enabled.

    Also, as indicated in the first post, if I run manually

    Code
    systemctl start storage-Media.mount

    yes that mounts it.


    Actually, what I do not understand is why under the same conditions, in version 8.2.5 it worked and in versions 9.0.x it does not work. What must have changed.

  • Yes, that's how it works. Thanks for the suggestion of the patch.

    File /storage/.config/autostart.sh

    Bash
    #!/bin/bash
    
    systemctl start storage-Media.mount

    But I still do not understand why it does not work properly doing it alone as indicated in Mounting network shares

    Could someone put more light on this issue?