diff options
Diffstat (limited to 'os-plugins')
| -rwxr-xr-x | os-plugins/plugins/xserver/files/ubuntu-ng-gfx-install.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/os-plugins/plugins/xserver/files/ubuntu-ng-gfx-install.sh b/os-plugins/plugins/xserver/files/ubuntu-ng-gfx-install.sh index 07631645..259f2650 100755 --- a/os-plugins/plugins/xserver/files/ubuntu-ng-gfx-install.sh +++ b/os-plugins/plugins/xserver/files/ubuntu-ng-gfx-install.sh @@ -33,6 +33,18 @@ if [ ! -e "/usr/sbin/dkms" ]; then fi fi +# TODO: find a more clean way for this workaround +# the current dkms script included in ubuntu is trying to compile +# kernel modules under the user nobody using "su" which is not +# working in the installation phase of the plugin. + +if [ $(grep -c "getent passwd nobody" /usr/sbin/dkms) -ne 0 ]; then + echo -n " * Patch DKMS not to run under user nobody .." + sed -i "s/getent passwd nobody/getent passwd N0/" \ + /usr/sbin/dkms + echo "ok" +fi + case ${TARGET} in ati) mkdir -p ${PLUGIN_FOLDER}/ati/modules |
