clone 646829 -1
reassign 646829 debian-installer-utils
reassign -1 udev-udeb
thanks
On Thu, Oct 27, 2011 at 04:56:05PM +0100, Steve McIntyre wrote:
> Package: apt-setup
> Version: 1:0.55
> Severity: serious
> Tags: d-i
> 
> Hi,
> 
> I've seen lots of recent reports of problems trying to install from
> CD/DVD, and I've tried a test install to see what's going on.
> 
> When installing without network, grub-installer can't install the
> grub-pc package that it needs. This appears to be because the CD is
> not mounted inside /target. Talking to Colin on IRC, initially we
> suspected commit 06493b627abc8636826fb22f7615635e9f90872d in
> apt-setup, but later testing with that change backed out shows exactly
> the same problem...

That was indeed a red herring.

If the CD device is easily mountable (i.e. we aren't working with a
loop-mounted ISO image or something), then apt-setup configures
apt-cdrom to rely on udev CD device detection.  Applying strace, this is
currently failing for two reasons.

Firstly, /run is not bind-mounted into /target, so apt-cdrom (via
libudev) fails to read files from under /run/udev/.
debian-installer-utils did have code for this, but I think I wrote it
rather early in the /run transition and conditions have since changed so
that it no longer works properly.  I have committed a fix for this and
will upload it shortly.

Secondly, apt-cdrom is looking for the ID_CDROM=1 property.  This is not
set on the CD device.  Although udev-udeb installs the cdrom_id program,
it does not install the corresponding rules.  Marco, could you please
apply this patch?

diff -Nru udev-172/debian/rules udev-172/debian/rules
--- udev-172/debian/rules       2011-07-23 02:03:49.000000000 +0100
+++ udev-172/debian/rules       2011-10-27 17:24:03.000000000 +0100
@@ -139,7 +139,7 @@
        install --mode=755 $(addprefix build-udeb/udev/, udevd udevadm) \
                $(DU)/sbin/
        install --mode=755 $(addprefix build-udeb/extras/, \
-               ata_id/ata_id cdrom_id/cdrom_id \
+               ata_id/ata_id cdrom_id/cdrom_id cdrom_id/60-cdrom_id.rules \
                path_id/path_id scsi_id/scsi_id usb_id/usb_id ) \
                extras/rule_generator/write_*_rules extra/firmware.agent \
                $(DU)/lib/udev/

Once I fix these two problems, everything works properly again.

-- 
Colin Watson                                       [cjwat...@debian.org]



-- 
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/20111027164111.ga4...@riva.dynamic.greenend.org.uk

Reply via email to