Controlling Mountpoints within LibreELEC

  • Can someone please tell me where the mounts are controlled within LibreELEC?

    I have other systems on the same box with LibreELEC and when I boot into LE, I can see all those partitions have been mounted.

    I need to prevent LibreELEC from mounting these partitions:

    Code
    var-media-ASTOR.mount                                  loaded active     mounted         /var/media/ASTOR
    var-media-ASYS.mount                                   loaded active     mounted         /var/media/ASYS
    var-media-LSTOR.mount                                  loaded active     mounted         /var/media/LSTOR
    var-media-LSYS.mount                                   loaded active     mounted         /var/media/LSYS
    
    [email protected]                         loaded active     exited          Udevil mount service
    [email protected]                         loaded active     exited          Udevil mount service
    [email protected]                         loaded active     exited          Udevil mount service
    [email protected]                         loaded active     exited          Udevil mount service
    [email protected]                          loaded active     exited          Udevil mount service
  • It's done via udev, you would have to override the udev rule to stop specific devices from mounting

    something like:

    Code
    cp /usr/lib/udev/rules.d/95-udevil-mount.rules /storage/.config/udev.rules.d/

    Then you can edit it with nano in it's new location

    Code
    nano /storage/.config/udev.rules.d/95-udevil-mount.rules