summaryrefslogtreecommitdiffstats
path: root/os-plugins
diff options
context:
space:
mode:
authorSebastian Schmelzer2009-09-29 19:59:30 +0200
committerSebastian Schmelzer2009-09-29 19:59:30 +0200
commitb5137a64e4e58fd8b9389320091449f388341ea9 (patch)
tree1a25ec12cecd897b1eeabcece161a488608f003f /os-plugins
parentincluded mounting of /proc/ when updating via yum (diff)
downloadcore-b5137a64e4e58fd8b9389320091449f388341ea9.tar.gz
core-b5137a64e4e58fd8b9389320091449f388341ea9.tar.xz
core-b5137a64e4e58fd8b9389320091449f388341ea9.zip
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
Diffstat (limited to 'os-plugins')
-rwxr-xr-xos-plugins/plugins/xserver/files/ubuntu-ng-gfx-install.sh12
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