Posts by hurricanehrndz

    I encountered this issue as well. Another way to solve it with systemd would be to make a wait service.


    First make the wait script

    Bash: /usr/bin/wait-for-mergerfs
    #!/bin/bash
    #/usr/bin/wait-for-mergerfs
    for i in {1..5}; do
    if [[ -e "/srv/e7f4be7f-ade2-4e06-a819-58883b226cc3/media" ]]; then
    exit 0
    fi
    sleep 1
    done



    Create the wait service


    Create override for the necessary mounts

    Bash
    systemctl edit sharedfolders-media.mount


    Place the following in the file

    Code
    [Unit]
    Requires=mergerfs-wait-online.servie
    After=mergerfs-wait-online.service


    This solution has the benefit of not needing to edit fstab or openmedia config