The file /etc/init.d/functions.sh provided by baselayout-2 with openrc-9999 from the uberlord overlay is incomplete. A specific example. /sbin/modules-update from sys-apps/module-init-tools requires function KV_to_int() to update /etc/modprobe.conf . However, the provided version of /etc/init.d/functions.sh is missing all of the KV functions. These functions are not just used by /etc/modules.autoload.d , but also by /sbin/modules-update . Updating of modprobe.conf is a basic necessity of any Linux distro. Reproducible: Always
Error message: # update-modules /sbin/update-modules: line 118: KV_to_int: command not found /sbin/update-modules: line 118: KV_to_int: command not found #
Only modules-update requires KV_to_int, which works only for Linux systems (or systems whose versioning works purely off 3 dot seperated numbers). As modules-update isn't needed for newer module-init-tools, this function should die and be present only in modules-update. In other words, I have no wish to add it to OpenRC.
latest module-init-tools has been rewritten