docker-makemkv
docker-makemkv copied to clipboard
issue with passing sgX parm after reboot
every time i reboot the server the drive letter for sgX changes, so no drives found, so i need to manually look at the log everytime and edit the container to change the drive assignment
is it possible to have the container automaticly probe for the correct drive assignments and pass them to the container on startup?
Unfortunately the container itself cannot do anything, since it's the host that starts the container that must provide the proper devices.
However, one thing you could do is pass all your sgX devices to the container. This way, the correct one will always be available.
I am running multiple instances of this docker, each with different MakeMKV configurations and each one having a dedicated drive out of my drive tower. I tried to use udev to create persistent symlinks to use for mapping, but MakeMKV doesn't seem to work with them.
I discovered a workaround by using disk/by-id links.
Put this in EXTRA PARAMETERS: --device=$(readlink -f /dev/disk/by-id/ata_DVD-DRIVE_SERIAL) --device=$(/boot/custom/diskmapper.sh /dev/disk/by-id/ata_DVD-DRIVE_SERIAL)
/boot/custom/diskmapper.sh is a simple script, similar to 95-check-optical-drive.sh, that uses lsscsi to map the optical drive device to the scsi generic device. Since the /dev/disk/by-id/ names never change, I no longer have to update the dockers unless I replace the drives.