diff options
| author | Volker Uhrig | 2008-08-22 14:26:00 +0200 |
|---|---|---|
| committer | Volker Uhrig | 2008-08-22 14:26:00 +0200 |
| commit | 91bc3faf0c6582332a783352eb052908f4614495 (patch) | |
| tree | f1bf72df4a8962bfd11290b9ceb9cb32f4f26393 /os-plugins/plugins/vmware/files | |
| parent | Sorry - mistake Reiner pointed out ... (diff) | |
| download | core-91bc3faf0c6582332a783352eb052908f4614495.tar.gz core-91bc3faf0c6582332a783352eb052908f4614495.tar.xz core-91bc3faf0c6582332a783352eb052908f4614495.zip | |
* changed way to find kernel behaviour
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2080 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins/plugins/vmware/files')
| -rw-r--r-- | os-plugins/plugins/vmware/files/install-vmpl.sh | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/os-plugins/plugins/vmware/files/install-vmpl.sh b/os-plugins/plugins/vmware/files/install-vmpl.sh index f2e3da7e..1d4c8419 100644 --- a/os-plugins/plugins/vmware/files/install-vmpl.sh +++ b/os-plugins/plugins/vmware/files/install-vmpl.sh @@ -99,15 +99,9 @@ if [ "${vmplversion}" != "vmpl1.0" ]; then fi echo " * building vmblock module" -# TODO: check if /boot/vmlinuz is available if we get the kernel version this way -# perhaps we don't need a check... perhaps openslx always use -# /boot/vmlinuz -# This problem happens 3 times. see below! -# TODO: error check if build environment isn't installed... -#TODO: vmblock only v2 if [ "${vmplversion}" != "vmpl1.0" ]; then cd vmblock-only/ - sed -i "s%^VM_UNAME = .*%VM_UNAME = $(ls /boot/vmlinuz*|grep -v -e "^/boot/vmlinuz$$"|sed 's,/boot/vmlinuz-,,'|sort|tail -n 1)%" Makefile + sed -i "s%^VM_UNAME = .*%VM_UNAME = $(find /lib/modules/2.6* -maxdepth 0|sed 's,/lib/modules/,,g'|sort|tail -n1)%" Makefile make -s mv vmblock.ko vmblock.o ../../../../../modules cd .. @@ -115,14 +109,14 @@ fi echo " * building vmmon module" cd vmmon-only -sed -i "s%^VM_UNAME = .*%VM_UNAME = $(ls /boot/vmlinuz*|grep -v -e "^/boot/vmlinuz$$"|sed 's,/boot/vmlinuz-,,'|sort|tail -n 1)%" Makefile +sed -i "s%^VM_UNAME = .*%VM_UNAME = $(find /lib/modules/2.6* -maxdepth 0|sed 's,/lib/modules/,,g'|sort|tail -n1)%" Makefile make -s mv vmmon.ko vmmon.o ../../../../../modules cd .. echo " * building vmnet module" cd vmnet-only -sed -i "s%^VM_UNAME = .*%VM_UNAME = $(ls /boot/vmlinuz*|grep -v -e "^/boot/vmlinuz$$"|sed 's,/boot/vmlinuz-,,'|sort|tail -n 1)%" Makefile +sed -i "s%^VM_UNAME = .*%VM_UNAME = $(find /lib/modules/2.6* -maxdepth 0|sed 's,/lib/modules/,,g'|sort|tail -n1)%" Makefile make -s mv vmnet.ko vmnet.o ../../../../../modules cd ../../../../../.. |
