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

Re: Bug#740673: apt-cdrom ident started requesting to insert cd even if cd is already mounted



[ CC'ing debian-bsd@l.d.o ]

On Tue, Mar 04, 2014 at 12:28:40AM +0100, Gabriele Giacone wrote:
> Package: apt
> Version: 0.9.15.5
> Severity: important
> Tags: d-i
> User: debian-hurd@lists.debian.org
> Usertags: hurd
> Control: found -1 0.9.15.2
> Control: notfound -1 0.9.15.1
> 
> On hurd, "apt-cdrom ident" started requesting to insert cdrom even if cdrom is
> already mounted.
> That breaks debian-installer given it's called by load-install-cd.
> Recent debian-installer builds get stuck at "Configuring apt - Scanning the
> CD-ROM".
> See https://bugs.debian.org/728153

Just checked it affects kfreebsd-* as well. Here it also unmounts the cd.
My guess is it doesn't handle non-udev systems correctly.


root@kfreebsd-i386-01:~# mount -t cd9660 /dev/cd0 /media/cdrom
root@kfreebsd-i386-01:~# df /dev/cd0
Filesystem     1K-blocks   Used Available Use% Mounted on
/dev/cd0          662928 662928         0 100% /media/cdrom0
root@kfreebsd-i386-01:~# apt-cdrom ident
Using CD-ROM mount point /media/cdrom/
Unmounting CD-ROM
Waiting for disc...
Please insert a Disc in the drive and press enter		<<<<<<
Mounting CD-ROM...
E: Failed to mount the cdrom.
E: No CD-ROM could be auto-detected or found using the default mount point.
You may try the --cdrom option to set the CD-ROM mount point. See 'man apt-cdrom' for more information about the CD-ROM auto-detection and mount point.
root@kfreebsd-i386-01:~# df /dev/cd0
Filesystem     1K-blocks  Used Available Use% Mounted on
devfs                  1     1         0 100% /dev
root@kfreebsd-i386-01:~# dpkg -i libapt-pkg4.12_0.9.15.1_kfreebsd-i386.deb 
dpkg: warning: downgrading libapt-pkg4.12:kfreebsd-i386 from 0.9.15.4 to 0.9.15.1
(Reading database ... 113946 files and directories currently installed.)
Preparing to unpack libapt-pkg4.12_0.9.15.1_kfreebsd-i386.deb ...
Unpacking libapt-pkg4.12:kfreebsd-i386 (0.9.15.1) over (0.9.15.4) ...
Setting up libapt-pkg4.12:kfreebsd-i386 (0.9.15.1) ...
Processing triggers for libc-bin (2.17-97) ...
root@kfreebsd-i386-01:~# mount -t cd9660 /dev/cd0 /media/cdrom
root@kfreebsd-i386-01:~# df /dev/cd0
Filesystem     1K-blocks   Used Available Use% Mounted on
/dev/cd0          662928 662928         0 100% /media/cdrom0
root@kfreebsd-i386-01:~# apt-cdrom ident
Using CD-ROM mount point /media/cdrom/
Mounting CD-ROM
Identifying.. [92303d2a8bd9fa0131c5c7f9c7ab3848-2]
Stored label: 
Unmounting CD-ROM...
root@kfreebsd-i386-01:~# 


Reply to: