LibreELEC is using udevil to auto-mount external drives.
In addition to udevil that'a a udev rule to determine which drives/partitions to auto-mount, a systemd service template to perform the mounting/unmounting and the udevil config file (which defines filesystem types, options etc).
All config files are here in our repo: LibreELEC.tv/packages/sysutils/udevil at master · LibreELEC/LibreELEC.tv · GitHub
so long,
Hias