dracut modules
Hi everyone. Are there any documents describing how to add new modules to /usr/share/dracut/modules.d? I have looked at what is available with RHEL6 Beta 1 version. I would need to insert my own drivers before lvm. Thanks in advance for your help.
-Dave
A message that is not in the archive (sent off-list or not yet received): [email protected]
Dave Stone <fsck1234-/[email protected]>:
Quoted 4 lines
Hi everyone. Are there any documents describing how to add new modules to
/usr/share/dracut/modules.d? I have looked at what is available with RHEL6 Beta 1 version. I would need to insert my own drivers before lvm. Thanks in advance for your help.
Yes, there's README.modules in the root of sources directory [0] (or inside /usr/share/doc/dracut-$version$ if your package manger puts docs there). Functions like inst are well documented in comments in dracut-functions script which should be placed in /usr/share/dracut/.
[0] http://sourceforge.net/projects/dracut/
Cheers,
Amadeusz Żołnowski
Signature · 1 line
PGP key: 1024D/C284750D
Quoted 7 lines · Dave Stone
Hi everyone. Are there any documents describing how to add new modules to
/usr/share/dracut/modules.d? I have looked at what is available with RHEL6 Beta 1 version. I would need to insert my own drivers before lvm. Thanks in advance for your help.-Dave
own drivers == kernel driver modules?
/etc/dracut.conf:
# additional kernel modules to the default #add_drivers+=""
or put it in /etc/dracut.conf.d/mykernelmodules.conf add_drivers+=" mykernelmodule "
or put it on the kernel command line (see man dracut):
rdloaddriver=<drivername>
force loading kernel module <drivername> This parameter can be specified
multiple times.
Quoted 4 lines · Harald Hoyer
Quoted 2 lines · Dave Stone
Hi everyone. Are there any documents describing how to add new modules to
/usr/share/dracut/modules.d? I have looked at what is available with
RHEL6
Quoted 13 lines
Quoted 5 lines
Beta 1 version. I would need to insert my own drivers before lvm. Thanks in advance for your help.
-Dave
own drivers == kernel driver modules?
/etc/dracut.conf:# additional kernel modules to the default #add_drivers+=""
Quoted 7 lines
or put it in
/etc/dracut.conf.d/mykernelmodules.confadd_drivers+=" mykernelmodule "or put it on the kernel command line (see man dracut):
rdloaddriver=<drivername>
force loading kernel module <drivername> This parameter can be
specified
Quoted 2 lines
multiple times.
Thanks for the responses guys. I have read the REDAME file and other related docs. I think my first inquiry was not sufficient so I'll try to explain a little better.
What I'm trying to do is to insert a third party multi-pathing package before root "/" is mounted. This needs to be done in BFS(boot from SAN) environment. The equivalent of this with SLES11 was to write 71-setup-MP.sh and 21-boot-MP.sh scripts. Then use mkinitrd with -f to add this new feature to the initrd image. I need to simulate the same setup and boot scripts to do the same thing for RHEL6.
I assume this is possible with dracut. I also think I need to use pre-mount hook to do this. I'm still not sure of what I should use for two digit numeric code.
One other question when using rdloaddriver=<drivername> at what stage of boot process does this driver gets loaded?
Regards,
-Dave
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 2 lines · Dave Stone
One other question when using rdloaddriver=<drivername> at what stage of boot process does this driver gets loaded?
In the beginning, before udev is started.
Quoted 4 lines
Regards,
-Dave