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

Bug#255128: cdrom-detect: Bad handling of mount error

On Sat, Jun 26, 2004 at 02:03:51PM +0200, Osamu Aoki wrote:
> On Fri, Jun 25, 2004 at 12:41:53AM -0400, Joey Hess wrote:
> > Let's get it working, and then later make it pretty. That's not hard
> > to do, and I'm sure someone will eventally add a progress bar for it.
> OK:  Here is one.  Let me check this when I come back home later.
> At least ALT-F4 will give you progress.
> --- cdrom-detect.postinst.org	1970-01-01 01:00:00.000000000 +0100
> +++ cdrom-detect.postinst	2004-06-26 13:54:47.000000000 +0200
> +            log "Waiting 1 second and trying it again."
> +            sleep 1
> +            if mount -t iso9660 -o ro,exec $device /cdrom

It did not wotk on sarge-i386-netinst_tc1.iso image as is.

Busybox does not have "sleep" on this version.  (Why?)

I will put updated patch, iso-image example, syslog-commented, etc at


It works but I think following messages after Detecting CD needs to be
understood before applying.

| Jun 26 19:34:27 (none) user.notice cdrom-detect: Detected CD with 'testing' distribution
| Jun 26 19:34:27 (none) user.info main-menu[297]: (process:454): mount: Mounting /dev/cdroms/cdrom0 on /cdrom failed: Not a directory
| Jun 26 19:34:27 (none) user.info main-menu[297]: (process:454): umount:
| Jun 26 19:34:27 (none) user.info main-menu[297]: (process:454): /cdrom
| Jun 26 19:34:27 (none) user.info main-menu[297]: (process:454): : Invalid argument


PS: syslog-commented is my excerps from original syslog.

Attachment: signature.asc
Description: Digital signature

Reply to: