This patch adds a MINIMAL_LINKS option in /etc/udev/cdsymlinks.conf, which causes /etc/udev/scripts/cdsymlinks.sh to minimize the number of additional links it generates for each optical drive. For example, if you have a CD-ROM, DVD-ROM and a DVD-RW device, cdsymlinks.sh will create 3 /dev/cdrom links, 2 /dev/dvd links, and one /dev/dvdrw link, which is not always desirable. Your CD-ROM can become either /dev/cdrom, /dev/cdrom1 or /dev/cdrom2, depending on device scanning order, which can be confusing. Enabling MINIMAL_LINKS=1 will cause exactly one /dev/cdrom, one /dev/dvd and one /dev/dvdrw link to be created for each device respectively. Default behaviour is unchanged, users will have to uncomment this option to activate it. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 58983 [details, diff] the MINIMAL_LINKS patch
Please work with the upstream author of the cdsymlinks program to get this merged with his latest changes. Then they can be accepted into the main udev release.