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

Bug#597553: cdrom-detect: Need a simple retry or delay to mount USB CD-ROMs



For what it's worth, doing the following made the issue go away for us:


Index: packages/cdrom-detect/debian/cdrom-detect.postinst
===================================================================
--- packages/cdrom-detect/debian/cdrom-detect.postinst (revision 64821)
+++ packages/cdrom-detect/debian/cdrom-detect.postinst (working copy)
@@ -96,6 +96,7 @@
        WRONG=

        devices="$(list-devices cd; list-devices maybe-usb-floppy)"
+       sleep 2
        for device in $devices; do
                if try_mount $device $CDFS; then
                        break 2


I know, it's a total hack. Would it be better to put something in
list-devices to wait until the devices become available?

T



Reply to: