Open MegaV0lt opened 2 years ago
There can be more than one external drive and it isn't necessarily a hard disk, so a static string would not lead to an unique name - how about a suffix like [External Drive]
(similar to the markings used by avahi-linker)?
target="${videodir}/[${mount_path##*/}]" # /video/[DRIVE_NAME]
This is not a static link. It just adds the '[' and ']'
The 'USB_HD' ist just a sample. My drive is named 'USB_HD'. Another drive i have is named 'Seagate'. The Link then is '[Seagate]'
https://github.com/yavdr/yavdr-ansible/blob/38d5fb1d63f9cde06edb32bf2fe3826773c01c1c/roles/udiskie/templates/udiskie_vdr_mount_helper.j2#L17
Mark mounted disk in recordin list for better user-expirience.
target="${videodir}/[${mount_path##*/}]" # /video/[USB_HD]
Resulting in:Much better to find, as disklabel is differend when using disfdferent disks
Other possible markings are '=> USB_HD' or '_USB_HD' for example