From b5137a64e4e58fd8b9389320091449f388341ea9 Mon Sep 17 00:00:00 2001 From: Sebastian Schmelzer Date: Tue, 29 Sep 2009 17:59:30 +0000 Subject: get nvidia/ati kernel modules build under ubuntu 9.10: added workaround manipulating ubuntu's dkms script not to try to compile kernel modules under a unpriviledged user git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@3166 95ad53e4-c205-0410-b2fa-d234c58c8868 --- os-plugins/plugins/xserver/files/ubuntu-ng-gfx-install.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'os-plugins/plugins/xserver') 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 -- cgit v1.2.3-55-g7522