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

Re: Bug#265636: Idea for Dell CDROM detect issue



On Thu, Aug 19, 2004 at 03:00:32AM +0200, Osamu Aoki wrote:
> I found bug.
one more
> 
>     log "main loop: $imount out of $maxmount"
>     # Is a cdrom (image) already mounted at /cdrom?  Sanity check! 
>     if [ ! -e /cdrom ] ; then
I need to reorder
> 	# First run of cdrom-detect
> 	mkdir /cdrom 2>/dev/null || true
>     elif [ "$mounted" = "1" ]; then
> 	# If a device was detected but the mount failed, ask for the CD.
> 	log "CDROM device was detected but the mount failed."
> 	db_input critical cdrom-detect/retry || [ $? -eq 30 ]
> 	db_go
> 	db_get cdrom-detect/retry
> 	if [ "$RET" = "true" ]; then
> 	    imount=$((${imount}-1))
> 	    mounted=0
> 	    continue
> 	else
> 	    fail "a device was detected but the mount failed."
> 	fi
>     elif [ -e /cdrom/.disk/info ] ; then
this is before /cdrom



Reply to: