Simple error/fix, at the end of the emerge, the install portion fails: * Generating /etc/modprobe.conf ... modprobe: Can't open dependencies file /lib/modules/2.5.60/modules.dep (No such file or directory) modprobe: Can't open dependencies file /lib/modules/2.5.60/modules.dep (No such file or directory) !!! ERROR: sys-apps/module-init-tools-0.9.9 failed. !!! Function src_install, Line 84, Exitcode 255 !!! Could not create modprobe.conf 'twould be easy to check if the directory for $(uname -r) exists and make it if it doesn't. Do this before compiling/installing. version=$(uname -r) if [ ! -e /lib/modules/${version} ]; then mkdir -p /lib/modules/${version} touch /lib/modules/${version}/modules.dep fi
Ill rather go for: ------------------ pkg_setup() { get_KV if [ ! -f /lib/modules/${KV}/modules.dep ] then eerror "Please compile and install a kernel first!" die "Please compile and install a kernel first!" fi }
Added pkg_setup() to ebuild.