After upgrading to sys-kernel/genkernel-3.5.3.3, the bonding kernel module arguments are ignored from /etc/conf.d/modules if using an initramfs from genkernel. It works as expected with previous stable version 3.4.52.4-r3. Since the initrd loads the bonding module before the boot service module is started, the latter cannot insmod bonding (for example with other bonding mode). Bonding was added to MODULES_NET after 3.5.0.3: https://github.com/gentoo/genkernel/commit/f99593cc304527d7b3cc5e964ffad51556e1434c#diff-0bc427afad0720ee65a32fb482e12a26
What code is loading the bonding module after initramfs and needs to be updated to use the sysfs toggles to change the parameters?
/etc/init.d/modules of openrc (run in the boot runlevel). It won't insmod bonding (with args) since genkernel already loaded it.
Are you using netifrc? You have seen the sysfs support for setting bond params yes?
Didn't know about this possibility before, so instead of: /etc/conf.d/modules modules="bonding" module_bonding_args="mode=active-backup miimon=100" It will be done like this: /etc/conf.d/modules modules="bonding" /etc/conf.d/net mode_bond0="active-backup" miimon_bond0="100" Thanks for pointing that out, I'll try like that. Is it worth adding a pkg_postinst() message to genkernel that the newly added modules will have to be configured via netifrc because /etc/conf.d/modules will be ignored? Or should openrc be changed to allow these changes as well?
Presuming per the last comments that the netifrc solution was used.
Yes, it works fine, thanks.