The script,
/usr/bin/akmodsbuild was changed at some time to
forbid running the script as "root." This change, if course, prevents
akmod from automatically generating new kernel modules when run during boot after the kernel is changed.
It's simple to fix. Just log in at init level 3, run
nano /usr/bin/akmodsbuild and comment out the (rather misguided) check at the start of the init function. The corrected script should look like this:
Code:
init ()
{
## startup checks
# prevent root-usage
# if [[ -w / ]]; then
# echo "ERROR: Not to be used as root; start as user or '${myprog}' instead." >&2
# exit 1
# fi
Does anyone know what the developers were thinking when they added a check to prevent a system that requires root privileges to install kernel modules from running with root access?
<edit>
Oops: Title says
/usr/sbin, not
/usr/bin, as the location, and I don't know how to edit a title line.
</edit>