Hi! Dne středa 15 prosinec 2004 03:31 Brian Corriveau napsal(a):
On Wednesday 08 December 2004 11:29 pm, Frank Steiner wrote:
That's actually what we do. The important thing is just to remove the "INITRD_MODULES" line in /etc/sysconfig/kernel in a post script before AY writes the bootloader config. Because then AY will detect it does not need any initrd modules and not create an initrd.
I tried putting in a chroot postscript that runs before the bootloader is written, but the autoinstaller still seems to insist on writing out an initrd. In fact it has a nasty habit of locking up without any error messages when writing out the "boot manager" from time to time. My kernel boots and runs fine without an initrd so you can imagine this doesn't make me very happy to see that part mess up the install. The postscript puts a # in front of the INITRD_MODULES. When I log at the setup.log I can set that the post script ran and put the # in because I cat the file after modifying it. What is really strange is that the /etc/sysconfig/kernel in the installed system the line is uncommented and has a module in it. Is there something else I need to do to not build an initrd?
The variable INITRD_MODULES is written by YaST just before bootloader is being installed (so that all modules that were discovered as needed in initrd just before bootloader is written are there). This is why your changes get rewritten. As the easiest solution I see modifying the /sbin/mkinitrd script via a postscript, so that it doesn't create any initrd. -- Regards, Jiri Srain YaST2 developer --------------------------------------------------------------------- SuSE CR, s.r.o. e-mail: jsrain@suse.cz Drahobejlova 27 tel: +420 2 9654 2373 190 00 Praha 9 fax: +420 2 9654 2374 Czech Republic http://www.suse.cz