From: Olaf W. <wei...@ip...> - 2008-05-12 17:33:29
|
Ivan Kabaivanov wrote: >> Ivan Kabaivanov wrote: >>> I will do this instead: I'll redesign mkinitramfs's --with-modules >>> switch so that it will work in three modes: >>> 1) --with-modules=/path/to/modules.list -- this will take only the >>> modules (plus dependencies) found in a file >>> 2) --with-modules=ata,scsi,ide,fs etc etc -- this will copy the entire >>> modules subdirectories >>> 3) --with-modules=all -- this will copy all modules >> 2 separate switches would be ok. --module-list= and --modules (or >> something like that). > > > > > just committed new_mkinitramfs for testing. --with-modules takes any > combination of individual modules, whole modules subdirectories, a filename > with a list of modules and the keyword 'all' which will include all modules. I've played around with this a bit and merged some of the new-mkinit into mkinitramfs, at the same time redid the switches (hope you don't mind ;-)) Here is the (long) summary: mkinitramfs basically uses 3 different methods: --with-modules=<list> where list is a comma seperated list of modules --with-file=<file> where the file is list of modules (one per line) --all-modules throw all of /lib/modules/${KVER}/kernel into ipcoprd.img The installer sticks to method 2 (as before). On my main textbox this creates a 1.3 MB image, using all modules makes that into 7.something To change the ipcoprd.img, switch to console 2 when the installer asks whether to restore, and type something like: chroot /harddisk /sbin/mkinitramfs --with-kernel=2.6.24 --all-modules or (after extending /harddisk/tmp/module-list): chroot /harddisk /sbin/mkinitramfs --with-kernel=2.6.24 --with-list=/tmp/module-list The thing is that using all modules does not work, since /etc/modules.conf is empty and udevd is either not started correctly, at the wrong time or has some other problem. Anyways, it should be lots easier to try and figure out why some boxes won't install correctly. For the record, I (only) have 4 different machines, which all install perfectly. Olaf -- A weizen a day helps keep the doctor away. |