Boot from a scsi disk: Part II (Anas: there is a bug in AY)
Hi, unfortunately, the "Boot from a scsi disk" I posted before is still not enough to boot from a scsi disk. Here's what happens: - autoyast automatically detects the scsi controllers in the system. In one of my systems there are a icp vortex and a adaptec controller. - when writing the bootloader config, autoyast inserts the scsi modules for the detected controllers at the beginning of the INITRD_MODULES line in /etc/sysconfig/kernel - unfortunately, *only* the scsi controller modules are inserted, *not* the scsi_mod module. This results in an initrd trying to load e.g. the gdth and the aic7xxx modules without loading scsi_mod first (sd_mod is loaded automatically). Thus, the first boot attempt after the installation ends up with unknown symbols in sd_mod, gdth and aic7xxx, and the scsi disk to boot from cannot be activated and the kernel panics. - adding scsi_mod to the initrd modules in the bootloader profile, does not work. When you specify <bootloader> <initrd_modules config:type="list"> <initrd_module> <module>scsi_mod</module> <module_args></module_args> </initrd_module> </initrd_modules> </bootloader> that does add the scsi_mod modules to the INITRD_MODULES value, but this step is done before the bootloader module runs, and so it inserts the scsi controller modules *before* the scsi_mod, thus the initrd still tries to load gdth/aic7xxx *before* the scsi_mod. - the solutions is to specify the scsi_mod *and* the scsi controller modules in the <bootloader> section in the right order,i.e., <initrd_module> <module>scsi_mod</module> <module_args></module_args> </initrd_module> <initrd_module> <module>gdth</module> <module_args></module_args> </initrd_module> This will finally end up with the INITRD_MODULES line "aic7xxx gdth scsi_mod aic7xxx gdth" where the last three entries come from the <bootloader> specification. Then, the mk_initrd script does some kind of sorting and inserts the scsi_mod as first module, resulting in a clean boot from the scsi disk. Anas: I think that autoyasts bootloader configuration module should automatically insert "scsi_mod" as first module, when it has autodetected and inserted any scsi controller module. Or to insert the modules the user specifies on the <bootloader> section at the head of the INITRD_MODULES list. cu, Frank -- Dipl.-Inform. Frank Steiner Web: http://www.bio.ifi.lmu.de/~steiner/ Lehrstuhl f. Bioinformatik Mail: http://www.bio.ifi.lmu.de/~steiner/m/ LMU, Amalienstr 17 Phone: +49 89 2180-4049 80333 Muenchen, Germany Fax: -4054 * Rekursion kann man erst verstehen, wenn man Rekursion verstanden hat. *
participants (1)
-
Frank Steiner