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

Bug#345999: installation-report: Same problem on a Dell Latitude D610



Mensaje citado por Pelayo Gonzalez <pelayog@telecable.es>:

> Mensaje citado por Frans Pop <aragorn@tiscali.nl>:
> 
> Thanks for your work on this.

You welcome!.


> We will discuss the option of adding this in modprobe.conf somehow.
> Main questions there are:
> - when to do it
> - do we want to do it by default or only if reading the CD without the
>  option fails

My 2 cents:

Before CDROM detection, check if there are an ATAPI CDROM conected to SATA:

if test `lsmod | grep '^libata'
then
    # There are one or more ATAPI devices disabled? 
    if [ `dmesg | grep -q '^ata.*WARNING: ATAPI is disabled, device ignored.$'`
]
    then
        rmmod all_the_modules_that_depend_on_libata
        rmmod libata
        echo 'options libata atapi_enabled=1' >> /etc/modprobe.d
        modprobe libata
        modprobe all_the_modules_that_depend_on_libata
        LIBATA_HAS_ATAPI=1
    else
        LIBATA_HAS_ATAPI=0
    fi
fi 

Continue CDROM detection.

> - can we somehow make sure the option is also available after rebooting
>   into the installed system

Before kernel install:

if [ $LIBATA_HAS_ATAPI ]; then
    echo 'options libata atapi_enabled=1' >> /target/etc/modprobe.d/libata
fi

I hope yaird will pass the option to the initrd. I haven't got time to switch
from Ubuntu to Debian yet, so I'm can't try this now.

Saludos

Pelayo





Reply to: