[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



Quoting Anthony L. Awtrey (tony@awtrey.com):
> 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?

Assuming someone knows about The Right Way to know that devices are
available, sure.

Otherwise, I think that your hack is better than nothing. Others,
objections?



Attachment: signature.asc
Description: Digital signature


Reply to: