-   Fedora (
-   -   Change in /usr/sbin/akmodsbuild kills akmod (

PTrenholme 05-25-2010 06:39 PM

Change in /usr/sbin/akmodsbuild kills akmod
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:

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? :scratch:

Oops: Title says /usr/sbin, not /usr/bin, as the location, and I don't know how to edit a title line.

alli_yas 05-28-2010 11:44 AM

Very interesting issue:confused:

Maybe submit your post on the Redhat/Fedora Bugzilla? Its perhaps a bug in 13 maybe...

All times are GMT -5. The time now is 12:59 PM.