From: Marc G. <gr...@at...> - 2013-08-01 06:39:40
|
Hi Maricio, looks like you did the right thing but right a little bit clumsy. So this is how to make it better (at least in my eyes): 1. only the file If you just want to add a specific file: echo /lib/modules/2.6.32-279.22.1.el6.centos.plus.x86_64/kernel/drivers/dca/dca.ko >> /etc/comoonics/bootimage/file.initrd.d/dca.list Rebuild your initrd (with -C to rebuild the cache). The cache files are a bad place as they will be cleared after each update of the comoonics tools. 2. the rpm Nevertheless I beliefe the module comes from a specific rpm, right? If so you can just also add the rpm to the list of rpms being included in the initrd. This works as follows: echo <rpmname> >> /etc/comoonics/bootimage/rpm.initrd.d/dca.list Rebuild your initrd (with -C to rebuild the cache). Hope that makes things more clear. Marc. ----- Original Message ----- From: "Marcio Teixeira" <mar...@nu...> To: ope...@li... Sent: Wednesday, July 31, 2013 11:37:35 PM Subject: [OSR-users] Trying to add kernel module to initrd Hello, I've recently added a new node to an RHEL6 OpenSharedRoot 5 cluster that is much more modern than the rest of the cluster. In particular, this node had an internet adapter which is different from what the other nodes are using, and would not boot using the initrd image of my cluster. I eventually found out the "igb" and "dca" modules were failing to load, because of missing kernel module files. I needed to have a way to tell the "mkinitrd" to include the correct files in the initrd image. I experimented with "mkinitrd -M igb –M dca", but this did not work. I also tried to preload the modules prior to running "mkinitrd," under the assumption that "mkinitrd" would package whatever modules were currently in use by the kernel (I'm not sure whether this assumption is correct or not). This did not help either. I eventually got it to work by manually injecting the full path for the missing module into the file cache, and re-running "mkinitrd". E.g: mkinitrd /boot/initrd_sr-$(uname -r).img $(uname –r) echo /lib/modules/2.6.32-279.22.1.el6.centos.plus.x86_64/kernel/drivers/dca/dca.ko >> /var/cache/comoonics-bootimage/file-list.txt mkinitrd /boot/initrd_sr-$(uname -r).img $(uname –r) While this works, it seems a bit clumsy. Can anyone offer some guidance on what is the correct way to tell "mkinitrd" to package the files for the "dca" module without having to run mkinitrd twice? Thank you, Marcio Teixeira ------------------------------------------------------------------------------ Get your SQL database under version control now! Version control is standard for application code, but databases havent caught up. So what steps can you take to put your SQL databases under version control? Why should you start doing it? Read more to find out. http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk _______________________________________________ Open-sharedroot-users mailing list Ope...@li... https://lists.sourceforge.net/lists/listinfo/open-sharedroot-users |