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

Bug#210818: usb-discover: Makes installation bootup fail on systems without PCI

Package: usb-discover
Version: 0.02 (not installed)
Severity: important
Tags: patch

If /lib/debian-installer.d/S45usb-linux is run on a system without PCI,
it does an "exit 0":

if [ ! -e /proc/bus/pci/devices ]; then
        # PCI not present. quit
        exit 0

However, since this script is sourced from /sbin/debian-installer, not
executed in its own right, this makes /sbin/debian-installer exit, get
respawned by exit and then everything begins from scratch (making the
whole installation system useless since it never reaches main-menu).

Fixing this should be trivial, just remove the exit and change the if 
(negating the test) to

if [ -e /proc/bus/pci/devices ]; then
	(put entire rest of script here)

This affects all non-PCI systems, including the system bochs attempts to
emulate, making testing with bochs impossible. :-)

-- System Information:
Debian Release: 
Architecture: i386
Kernel: Linux trofast.sesse.net 2.4.22 #7 Fri Sep 5 00:09:43 CEST 2003 i686
Locale: LANG=C, LC_CTYPE=en_US.ISO8859-1

Reply to: