I have a computer with a DVD drive that is running Kubuntu 22.04.2 LTS x86_64. To make it so that a disk would mount properly when inserting it into the CD-ROM drive, I made some changes to /etc/fstab. The line in question I added is /dev/sr0 /media/cdrom udf,iso9660 ro,auto,user,exec,utf8 0 0
(I have edited the amount of spaces to fit properly here if that matters).
As this is the only change I made to fstab, and the rather odd behavior of not being able to boot normally without a disk inside the drive, I'm 90% certain this line is causing it. However, I still want to be able to have the drive auto-mount when I put a disk in. How can I go about doing that, without needing a random disk laying around to boot?