[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#588646: cdrom-detect: fails on isohybrid images



Package: cdrom-detect
Severity: normal
Tag: patch

Hi,

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.

---snip---
Index: cdrom-detect.postinst
===================================================================
--- cdrom-detect.postinst       (revision 63719)
+++ cdrom-detect.postinst       (working copy)
@@ -63,6 +63,9 @@
                        if try_mount $device vfat; then
                                break 2
                        fi
+                       if try_mount $device iso9660; then
+                               break 2
+                       fi
                done
        fi
---snap---


If you agree, I'd like to commit it.

Regards,
Daniel

-- 
Address:        Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist
Email:          daniel.baumann@panthera-systems.net
Internet:       http://people.panthera-systems.net/~daniel-baumann/



Reply to: