#2020 closed enhancement (invalid)
Patch to VBox.sh for Linux 2.4.x host kernels
回報者: | abe_skolnik | 負責人: | |
---|---|---|---|
元件: | other | 版本: | VirtualBox 1.6.4 |
關鍵字: | 副本: | ||
Guest type: | other | Host type: | other |
描述
here is a patch that removes annoying erroneous warnings when vboxdrv.o [note: _not_ .ko, as in Linux 2.6] is already loaded:
* VBox.sh Wed Aug 27 23:14:51 2008 --- VBox.sh_orig Wed Aug 27 22:46:43 2008 * * 32,40
if [ "$1" = "shutdown" ]; then
SHUTDOWN="true"
! # The following patch to prevent spurious unnecessary warnings when running on a 2.4.x host kernel written by Abe Skolnik 2008-8-27
! # elif [ ! -e /lib/modules/uname -r
/misc/vboxdrv.ko ]; then
! elif [ ! -e /lib/modules/uname -r
/misc/vboxdrv.ko ] && [ ! -e /lib/modules/uname -r
/misc/vboxdrv.o ]; then
cat << EOF
WARNING: There is no module available for the current kernel (
uname -r
).Please recompile the kernel module and install it by:
--- 32,38 ----
if [ "$1" = "shutdown" ]; then
SHUTDOWN="true"
! elif [ ! -e /lib/modules/uname -r
/misc/vboxdrv.ko ]; then
cat << EOF
WARNING: There is no module available for the current kernel (
uname -r
).Please recompile the kernel module and install it by:
附加檔案 (1)
更動歷史 (3)
comment:1 16 年 前 由 編輯
From which version did you take the VBox.sh file? There is no line
elif [ ! -e /lib/modules/`uname -r`/misc/vboxdrv.ko ]; then
instead there is a line
elif ! lsmod|grep -q vboxdrv; then
which should fit to 2.4 kernels as well as to 2.6 kernels. Which VirtualBox package are did you install (exact package name please) on which distribution?
a context diff patch that fixes the problem, at least on my main PC