Bug#588646: cdrom-detect: fails on isohybrid images
isohybrid images when written to a block device result in having one
partition (e.g. /dev/sdb1) with the filesystem iso9660.
when using cdrom-detect with cdrom-detect/try-usb=true, it
unconditionally tries to mount /dev/sdb1 with vfat, which naturally fails.
here's the diff against trunk that i've verified to work and which fixes
this by also trying to mount the partition with iso9660.
--- cdrom-detect.postinst (revision 63719)
+++ cdrom-detect.postinst (working copy)
@@ -63,6 +63,9 @@
if try_mount $device vfat; then
+ if try_mount $device iso9660; then
+ break 2
If you agree, I'd like to commit it.
Address: Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist