Jens Seidel wrote: > I can now reproduce it and found also the problem: > APT is not able to mount a Debian CD, since APT searchs by default in > /cdrom (see #282344) but /target/etc/fstab refers to /media/cdrom0. > Setting Acquire::cdrom::mount "/media/cdrom0" in /target/etc/apt/apt.conf > fixes this.
d-i creates a /cdrom -> /media/cdrom0 link, specifially to keep apt happy. So the question seems to be, why isn't that working for apt in /target? > To reproduce it use the Beta 3 netinst ISO ("install" target) and > install a system without network mirror. Once the installation finished > the CD is unmounted. Now select again "Select and install software" and > try to install another task. The system hangs now because APT cannot > mount the CD. The same happens if the user unmout the CD manually ... Ok, so you're going all the way thru to the end of the installation process, which unmounts and ejects the CD, canceling when it says it's going to reboot, and then going back and running pkgsel again. The problem might be that base-installer adds this to apt.conf.d: APT::CDROM::NoMount "true"; Acquire::cdrom { mount "/cdrom"; "/cdrom/" { Mount "true"; UMount "true"; }; } And it's not removed until the very end of the installation. So if you cancel and go back, you're left with an unmounted CD, and with apt configured to never try to mount the CD. If so, then moving base-installer's finish-install script to run before cdrom-detect's would solve the problem. It could be tested by removing /target/etc/apt/apt.conf.d/00NoMountCDROM by hand and seeing it pkgsel worked then. I'm not currently able to test this. -- see shy jo
signature.asc
Description: Digital signature