Changeset 32183 in vbox for trunk/src/VBox/Installer
- Timestamp:
- Sep 1, 2010 3:53:42 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 65467
- Location:
- trunk/src/VBox/Installer/linux
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/linux/Makefile.kmk
r31768 r32183 5 5 6 6 # 7 # Copyright (C) 2006-20 07Oracle Corporation7 # Copyright (C) 2006-2010 Oracle Corporation 8 8 # 9 9 # This file is part of VirtualBox Open Source Edition (OSE), as … … 146 146 VBoxSysInfo.sh \ 147 147 VBox.sh \ 148 VBox.png \ 149 src 148 VBox.png 150 149 151 150 # Qt4 GUI … … 254 253 # All the bin files that goes into the archives. 255 254 # 256 VBOX_LNX_ARCH_FILES := $(VBOX_LNX_STRIP_BIN) $(VBOX_LNX_STRIP_OBJ) $(VBOX_LNX_NO_STRIP) 255 VBOX_LNX_ARCH_FILES := $(VBOX_LNX_STRIP_BIN) $(VBOX_LNX_STRIP_OBJ) $(VBOX_LNX_NO_STRIP) src 257 256 258 257 # Cleanup of the files we copy/symlink from bin. … … 382 381 endif 383 382 383 # special rule for the kernel modules 384 $(VBOX_LNX_INST_OUT_DIR)/archive/src: $(PATH_BIN)/src | $(dir $@) 385 $(call MSG_INST_SYM,$<,$@) 386 $(QUIET)$(RM) -Rf $@ 387 $(QUIET)$(MKDIR) $@ 388 $(QUIET)$(LN_SYMLINK) $< $@/vboxhost 389 384 390 # pattern rule for linking the VBOX_LNX_NO_STRIP into archive/ 385 391 $(addprefix $(VBOX_LNX_INST_OUT_DIR)/archive/,$(VBOX_LNX_NO_STRIP)): \ -
trunk/src/VBox/Installer/linux/debian/postinst.in
r32008 r32183 93 93 fi 94 94 95 # try to build a kernel module (disable with INSTALL_NO_VBOXDRV=1 in /etc/default/virtualbox)96 REGISTER_DKMS=197 if [ ! -f /lib/modules/`uname -r`/misc/vboxdrv.ko -a "$INSTALL_NO_VBOXDRV" != "1" ]; then98 db_get virtualbox/module-compilation-allowed99 if [ "$RET" = "false" ]; then100 cat << EOF101 Unable to find a precompiled module for the current kernel102 though module compilation denied by debconf setting.103 EOF104 else105 db_input low virtualbox/module-compilation-allowed || true106 db_go || true107 db_get virtualbox/module-compilation-allowed108 if [ "$RET" = "true" ]; then109 # Compile module. Don't show a message box here if everything works well.110 cat << EOF111 Messages emitted during module compilation will be logged to $LOG.112 EOF113 rm -f /etc/vbox/module_not_compiled114 echo "** Compiling vboxdrv" > /var/log/vbox-install.log115 if ! /usr/share/virtualbox/src/vboxdrv/build_in_tmp \116 --save-module-symvers /tmp/vboxdrv-Module.symvers \117 --no-print-directory KBUILD_VERBOSE= \118 install >> /var/log/vbox-install.log 2>&1; then119 db_fset virtualbox/module-compilation-failed seen false120 db_input critical virtualbox/module-compilation-failed || true121 db_go || true122 touch /etc/vbox/module_not_compiled123 # don't abort the installation!124 else125 echo "** Compiling vboxnetflt" >> /var/log/vbox-install.log126 if ! /usr/share/virtualbox/src/vboxnetflt/build_in_tmp \127 --use-module-symvers /tmp/vboxdrv-Module.symvers \128 --no-print-directory KBUILD_VERBOSE= \129 install >> /var/log/vbox-install.log 2>&1; then130 db_fset virtualbox/module-compilation-failed seen false131 db_input critical virtualbox/module-compilation-failed || true132 db_go || true133 touch /etc/vbox/module_not_compiled134 # don't abort the installation!135 else136 echo "** Compiling vboxnetadp" >> /var/log/vbox-install.log137 if ! /usr/share/virtualbox/src/vboxnetadp/build_in_tmp \138 --use-module-symvers /tmp/vboxdrv-Module.symvers \139 --no-print-directory KBUILD_VERBOSE= \140 install >> /var/log/vbox-install.log 2>&1; then141 db_fset virtualbox/module-compilation-failed seen false142 db_input critical virtualbox/module-compilation-failed || true143 db_go || true144 touch /etc/vbox/module_not_compiled145 # don't abort the installation!146 fi147 fi148 fi149 # cleanup150 rm -f /tmp/vboxdrv-Module.symvers151 if [ ! -f /etc/vbox/module_not_compiled ]; then152 # success153 cat << EOF154 Success!155 EOF156 REGISTER_DKMS=157 fi158 fi159 fi160 fi161 162 # Register at DKMS. If the modules were built above, they are already registered163 if [ -n "$REGISTER_DKMS" ]; then164 DKMS=`which dkms 2>/dev/null`165 if [ -n "$DKMS" ]; then166 for m in vboxdrv vboxnetflt vboxnetadp; do167 $DKMS status -m $m | while read line; do168 if echo "$line" | grep -q added > /dev/null ||169 echo "$line" | grep -q built > /dev/null ||170 echo "$line" | grep -q installed > /dev/null; then171 v=`echo "$line" | sed "s/$m,\([^,]*\)[,:].*/\1/;t;d"`172 $DKMS remove -m $m -v $v --all > /dev/null 2>&1173 fi174 done175 $DKMS add -m $m -v %VER% > /dev/null 2>&1176 done177 fi178 fi179 180 # There might be an old module active (e.g. manually loaded)181 if lsmod | grep -q "vboxdrv[^_-]"; then182 /etc/init.d/vboxdrv stop || true183 fi184 185 95 # The starters need to be Suid root. They drop the privileges before starting 186 96 # the real frontend. … … 216 126 if [ -x "/etc/init.d/vboxdrv" ]; then 217 127 update-rc.d vboxdrv defaults >/dev/null 128 129 # There might be an old module active (e.g. manually loaded) 130 if lsmod | grep -q "vboxdrv[^_-]"; then 131 /etc/init.d/vboxdrv stop || true 132 fi 133 134 BUILD_MODULES=0 135 # Disable module compilation with INSTALL_NO_VBOXDRV=1 in /etc/default/virtualbox 136 if [ ! -f /lib/modules/`uname -r`/misc/vboxdrv.ko -a "$INSTALL_NO_VBOXDRV" != "1" ]; then 137 db_get virtualbox/module-compilation-allowed 138 if [ "$RET" = "false" ]; then 139 cat << EOF 140 Unable to find a precompiled module for the current kernel 141 though module compilation denied by debconf setting. 142 EOF 143 else 144 db_input low virtualbox/module-compilation-allowed || true 145 db_go || true 146 db_get virtualbox/module-compilation-allowed 147 if [ "$RET" = "true" ]; then 148 BUILD_MODULES=1 149 fi 150 fi 151 fi 152 218 153 if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then 154 if [ $BUILD_MODULES -eq 1 ]; then 155 invoke-rc.d vboxdrv setup || true 156 else 219 157 invoke-rc.d vboxdrv start || exit $? 158 fi 220 159 else 160 if [ $BUILD_MODULES -eq 1 ]; then 161 /etc/init.d/vboxdrv setup || true 162 else 221 163 /etc/init.d/vboxdrv start || exit $? 164 fi 222 165 fi 223 166 fi … … 230 173 # fi 231 174 fi 232 fi 175 176 fi # $1 = "configure" 233 177 234 178 exit 0 -
trunk/src/VBox/Installer/linux/debian/prerm.in
r32008 r32183 44 44 45 45 # make sure we de-register the DMKS modules before the files get removed 46 DKMS=`which dkms 2>/dev/null` 47 if [ -n "$DKMS" ]; then 48 $DKMS remove -m vboxnetadp -v %VER% --all > /dev/null 2>&1 || true49 $DKMS remove -m vboxnetflt -v %VER% --all > /dev/null 2>&1 || true50 $DKMS remove -m vboxdrv -v %VER% --all > /dev/null 2>&1 || true46 if [ "$1" = "upgrade" -o "$1" = "remove" -o "$1" = "deconfigure" ]; then 47 DKMS=`which dkms 2>/dev/null` 48 if [ -n "$DKMS" ]; then 49 $DKMS remove -m vboxhost -v %VER% --all > /dev/null 2>&1 || true 50 fi 51 51 fi 52 52 -
trunk/src/VBox/Installer/linux/debian/rules
r32044 r32183 278 278 usr/bin/VBox usr/bin/VBoxHeadless \ 279 279 $(if $(NOWEBSVC),,usr/bin/VBox usr/bin/vboxwebsrv) \ 280 usr/share/virtualbox/src/vboxdrv usr/src/vboxdrv-$(ver) \ 281 usr/share/virtualbox/src/vboxnetflt usr/src/vboxnetflt-$(ver) \ 282 usr/share/virtualbox/src/vboxnetadp usr/src/vboxnetadp-$(ver) 280 usr/share/virtualbox/src/vboxhost usr/src/vboxhost-$(ver) 283 281 dh_desktop 284 282 dh_installmenu -
trunk/src/VBox/Installer/linux/install.sh
r31768 r32183 65 65 66 66 module_loaded() { 67 lsmod | grep -q vboxdrv67 lsmod | grep -q "vboxdrv[^_-]" 68 68 } 69 69 … … 268 268 if [ -n "$DKMS" ] 269 269 then 270 $DKMS remove -m vboxhost -v $INSTALL_VER --all > /dev/null 2>&1 270 271 $DKMS remove -m vboxdrv -v $INSTALL_VER --all > /dev/null 2>&1 271 272 $DKMS remove -m vboxnetflt -v $INSTALL_VER --all > /dev/null 2>&1 … … 382 383 ln -sf $INSTALLATION_DIR/virtualbox.desktop /usr/share/applications/virtualbox.desktop 383 384 ln -sf $INSTALLATION_DIR/rdesktop-vrdp /usr/bin/rdesktop-vrdp 384 ln -sf $INSTALLATION_DIR/src/vboxdrv /usr/src/vboxdrv-_VERSION_ 385 ln -sf $INSTALLATION_DIR/src/vboxnetflt /usr/src/vboxnetflt-_VERSION_ 386 ln -sf $INSTALLATION_DIR/src/vboxnetadp /usr/src/vboxnetadp-_VERSION_ 385 ln -sf $INSTALLATION_DIR/src/vboxhost /usr/src/vboxhost-_VERSION_ 387 386 388 387 # If Python is available, install Python bindings … … 432 431 udevplug -Busb > /dev/null 2>&1 433 432 433 # Write the configuration. Do this before we call /etc/init.d/vboxdrv setup! 434 echo "# VirtualBox installation directory" > $CONFIG_DIR/$CONFIG 435 echo "INSTALL_DIR='$INSTALLATION_DIR'" >> $CONFIG_DIR/$CONFIG 436 echo "# VirtualBox version" >> $CONFIG_DIR/$CONFIG 437 echo "INSTALL_VER='$VERSION'" >> $CONFIG_DIR/$CONFIG 438 echo "INSTALL_REV='$SVNREV'" >> $CONFIG_DIR/$CONFIG 439 434 440 # Make kernel module 435 441 MODULE_FAILED="false" 436 442 if [ "$BUILD_MODULE" = "true" ] 437 443 then 438 info "Building the VirtualBox vboxdrv kernel module"444 info "Building the VirtualBox kernel modules" 439 445 log "Output from the module build process (the Linux kernel build system) follows:" 440 446 cur=`pwd` 441 447 log "" 442 cd $INSTALLATION_DIR/src/vboxdrv 443 ./build_in_tmp \ 444 --save-module-symvers /tmp/vboxdrv-Module.symvers \ 445 --no-print-directory install >> $LOG 2>&1 446 RETVAL=$? 447 if [ $RETVAL -ne 0 ] 448 then 449 info "Failed to build the vboxdrv kernel module." 450 info "Please check the log file $LOG for more information." 451 MODULE_FAILED="true" 452 RC_SCRIPT=1 453 else 454 info "Building the VirtualBox netflt kernel module" 455 log "Output from the module build process (the Linux kernel build system) follows:" 456 cd $INSTALLATION_DIR/src/vboxnetflt 457 ./build_in_tmp \ 458 --use-module-symvers /tmp/vboxdrv-Module.symvers \ 459 --no-print-directory install >> $LOG 2>&1 460 RETVAL=$? 461 if [ $RETVAL -ne 0 ] 462 then 463 info "Failed to build the vboxnetflt kernel module." 464 info "Please check the log file $LOG for more information." 465 MODULE_FAILED="true" 466 RC_SCRIPT=1 467 else 468 info "Building the VirtualBox netadp kernel module" 469 log "Output from the module build process (the Linux kernel build system) follows:" 470 cd $INSTALLATION_DIR/src/vboxnetadp 471 ./build_in_tmp \ 472 --use-module-symvers /tmp/vboxdrv-Module.symvers \ 473 --no-print-directory install >> $LOG 2>&1 474 RETVAL=$? 475 if [ $RETVAL -ne 0 ] 476 then 477 info "Failed to build the vboxnetadp kernel module." 478 info "Please check the log file $LOG for more information." 479 MODULE_FAILED="true" 480 RC_SCRIPT=1 481 fi 482 fi 483 fi 484 # cleanup 485 rm -f /tmp/vboxdrv-Module.symvers 448 setup_init_script vboxdrv 486 449 # Start VirtualBox kernel module 487 450 if [ $RETVAL -eq 0 ] && ! start_init_script vboxdrv; then … … 495 458 fi 496 459 497 echo "# VirtualBox installation directory" > $CONFIG_DIR/$CONFIG498 echo "INSTALL_DIR='$INSTALLATION_DIR'" >> $CONFIG_DIR/$CONFIG499 echo "# VirtualBox version" >> $CONFIG_DIR/$CONFIG500 echo "INSTALL_VER='$VERSION'" >> $CONFIG_DIR/$CONFIG501 echo "INSTALL_REV='$SVNREV'" >> $CONFIG_DIR/$CONFIG502 460 info "" 503 461 if [ ! "$MODULE_FAILED" = "true" ] -
trunk/src/VBox/Installer/linux/rpm/VirtualBox.tmpl.spec
r32008 r32183 135 135 ln -s VBox $RPM_BUILD_ROOT/usr/bin/VBoxHeadless 136 136 ln -s VBox $RPM_BUILD_ROOT/usr/bin/vboxwebsrv 137 ln -s /usr/share/virtualbox/src/vboxdrv $RPM_BUILD_ROOT/usr/src/vboxdrv-%VER% 138 ln -s /usr/share/virtualbox/src/vboxnetflt $RPM_BUILD_ROOT/usr/src/vboxnetflt-%VER% 139 ln -s /usr/share/virtualbox/src/vboxnetadp $RPM_BUILD_ROOT/usr/src/vboxnetadp-%VER% 137 ln -s /usr/share/virtualbox/src/vboxhost $RPM_BUILD_ROOT/usr/src/vboxhost-%VER% 140 138 mv virtualbox.desktop $RPM_BUILD_ROOT/usr/share/applications/virtualbox.desktop 141 139 mv VBox.png $RPM_BUILD_ROOT/usr/share/pixmaps/VBox.png … … 267 265 %endif 268 266 269 # try to build a kernel module (disable with INSTALL_NO_VBOXDRV=1 in /etc/default/virtualbox)270 REGISTER_DKMS=1 267 # Disable module compilation with INSTALL_NO_VBOXDRV=1 in /etc/default/virtualbox 268 BUILD_MODULES=0 271 269 if [ ! -f /lib/modules/`uname -r`/misc/vboxdrv.ko -a "$INSTALL_NO_VBOXDRV" != "1" ]; then 272 270 # compile problem … … 276 274 277 275 EOF 278 rm -f /etc/vbox/module_not_compiled 279 echo "** Compiling vboxdrv" > /var/log/vbox-install.log 280 if ! /usr/share/virtualbox/src/vboxdrv/build_in_tmp \ 281 --save-module-symvers /tmp/vboxdrv-Module.symvers \ 282 --no-print-directory KBUILD_VERBOSE= \ 283 install >> /var/log/vbox-install.log 2>&1; then 284 cat << EOF 285 Compilation of the kernel module FAILED! VirtualBox will not start until this 286 problem is fixed. Please consult $LOG to find out why the 287 kernel module does not compile. Most probably the kernel sources are not found. 288 Install them and execute 289 290 /etc/init.d/vboxdrv setup 291 292 as root. 293 294 EOF 295 touch /etc/vbox/module_not_compiled 296 else 297 echo "** Compiling vboxnetflt" >> /var/log/vbox-install.log 298 if ! /usr/share/virtualbox/src/vboxnetflt/build_in_tmp \ 299 --use-module-symvers /tmp/vboxdrv-Module.symvers \ 300 --no-print-directory KBUILD_VERBOSE= \ 301 install >> /var/log/vbox-install.log 2>&1; then 302 cat << EOF 303 Compilation of the kernel module FAILED! VirtualBox will not start until this 304 problem is fixed. Please consult $LOG to find out why the 305 kernel module does not compile. Most probably the kernel sources are not found. 306 Install them and execute 307 308 /etc/init.d/vboxdrv setup 309 310 as root. 311 312 EOF 313 touch /etc/vbox/module_not_compiled 314 else 315 echo "** Compiling vboxnetadp" >> /var/log/vbox-install.log 316 if ! /usr/share/virtualbox/src/vboxnetadp/build_in_tmp \ 317 --use-module-symvers /tmp/vboxdrv-Module.symvers \ 318 --no-print-directory KBUILD_VERBOSE= \ 319 install >> /var/log/vbox-install.log 2>&1; then 320 cat << EOF 321 Compilation of the kernel module FAILED! VirtualBox will not start until this 322 problem is fixed. Please consult $LOG to find out why the 323 kernel module does not compile. Most probably the kernel sources are not found. 324 Install them and execute 325 326 /etc/init.d/vboxdrv setup 327 328 as root. 329 330 EOF 331 touch /etc/vbox/module_not_compiled 332 fi 333 fi 334 fi 335 rm -f /tmp/vboxdrv-Module.symvers 336 if [ ! -f /etc/vbox/module_not_compiled ]; then 337 cat << EOF 338 Success! 339 340 EOF 341 REGISTER_DKMS= 342 fi 343 fi 344 # Register at DKMS. If the modules were built above, they are already registered 345 if [ -n "$REGISTER_DKMS" ]; then 346 DKMS=`which dkms 2>/dev/null` 347 if [ -n "$DKMS" ]; then 348 for m in vboxdrv vboxnetflt vboxnetadp; do 349 $DKMS status -m $m | while read line; do 350 if echo "$line" | grep -q added > /dev/null || 351 echo "$line" | grep -q built > /dev/null || 352 echo "$line" | grep -q installed > /dev/null; then 353 v=`echo "$line" | sed "s/$m,\([^,]*\)[,:].*/\1/;t;d"` 354 $DKMS remove -m $m -v $v --all > /dev/null 2>&1 355 fi 356 done 357 $DKMS add -m $m -v %VER% > /dev/null 2>&1 358 done 359 fi 276 BUILD_MODULES=1 360 277 fi 361 278 # if INSTALL_NO_VBOXDRV is set to 1, remove all shipped modules … … 368 285 /etc/init.d/vboxdrv stop || true 369 286 fi 370 if [ ! -f /etc/vbox/module_not_compiled ]; then 371 depmod -a 287 if [ $BUILD_MODULES -eq 1 ]; then 288 /etc/init.d/vboxdrv setup || true 289 else 372 290 /etc/init.d/vboxdrv start > /dev/null 373 /etc/init.d/vboxweb-service start > /dev/null 374 fi 291 fi 292 /etc/init.d/vboxweb-service start > /dev/null 375 293 376 294 … … 405 323 DKMS=`which dkms 2>/dev/null` 406 324 if [ -n "$DKMS" ]; then 407 $DKMS remove -m vboxnetadp -v %VER% --all > /dev/null 2>&1 || true 408 $DKMS remove -m vboxnetflt -v %VER% --all > /dev/null 2>&1 || true 409 $DKMS remove -m vboxdrv -v %VER% --all > /dev/null 2>&1 || true 325 $DKMS remove -m vboxhost -v %VER% --all > /dev/null 2>&1 || true 410 326 fi 411 327 -
trunk/src/VBox/Installer/linux/uninstall.sh
r31768 r32183 1 1 #!/bin/sh 2 # 3 # Oracle VM VirtualBox 4 # VirtualBox linux uninstallation script 5 6 # 7 # Copyright (C) 2009-2010 Oracle Corporation 8 # 9 # This file is part of VirtualBox Open Source Edition (OSE), as 10 # available from http://www.virtualbox.org. This file is free software; 11 # you can redistribute it and/or modify it under the terms of the GNU 12 # General Public License (GPL) as published by the Free Software 13 # Foundation, in version 2 as it comes in the "COPYING" file of the 14 # VirtualBox OSE distribution. VirtualBox OSE is distributed in the 15 # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 16 # 2 17 3 18 . `dirname $0`/routines.sh … … 49 64 # Remove kernel module installed 50 65 if [ -n "$DKMS" ]; then 51 $DKMS remove -m vbox drv-v $INSTALL_VER --all > /dev/null 2>&166 $DKMS remove -m vboxhost -v $INSTALL_VER --all > /dev/null 2>&1 52 67 fi 53 68 if [ -z "$VBOX_DONT_REMOVE_OLD_MODULES" ]; then … … 58 73 find /lib/modules/`uname -r` -name vbox\* 2>/dev/null|xargs rmdir -p 2> /dev/null 59 74 find /lib/modules/`uname -r` -name misc\* 2>/dev/null|xargs rmdir -p 2> /dev/null 75 rm -f /usr/src/vboxhost-$INSTALL_VER 2> /dev/null 60 76 rm -f /usr/src/vboxdrv-$INSTALL_VER 2> /dev/null 61 77 rm -f /usr/src/vboxnetflt-$INSTALL_VER 2> /dev/null -
trunk/src/VBox/Installer/linux/vboxdrv.sh.in
r29657 r32183 44 44 if [ -n "$INSTALL_DIR" ]; then 45 45 VBOXMANAGE="$INSTALL_DIR/VBoxManage" 46 BUILDVBOXDRV="$INSTALL_DIR/src/vboxdrv/build_in_tmp" 47 BUILDVBOXNETFLT="$INSTALL_DIR/src/vboxnetflt/build_in_tmp" 48 BUILDVBOXNETADP="$INSTALL_DIR/src/vboxnetadp/build_in_tmp" 46 DODKMS="$INSTALL_DIR/src/vboxhost/do_dkms" 47 BUILDVBOXDRV="$INSTALL_DIR/src/vboxhost/vboxdrv/build_in_tmp" 48 BUILDVBOXNETFLT="$INSTALL_DIR/src/vboxhost/vboxnetflt/build_in_tmp" 49 BUILDVBOXNETADP="$INSTALL_DIR/src/vboxhost/vboxnetadp/build_in_tmp" 49 50 else 50 51 VBOXMANAGE="/usr/lib/%PACKAGE%/VBoxManage" 51 BUILDVBOXDRV="/usr/share/%PACKAGE%/src/vboxdrv/build_in_tmp" 52 BUILDVBOXNETFLT="/usr/share/%PACKAGE%/src/vboxnetflt/build_in_tmp" 53 BUILDVBOXNETADP="/usr/share/%PACKAGE%/src/vboxnetadp/build_in_tmp" 52 DODKMS="/usr/share/%PACKAGE%/src/vboxhost/do_dkms" 53 BUILDVBOXDRV="/usr/share/%PACKAGE%/src/vboxhost/vboxdrv/build_in_tmp" 54 BUILDVBOXNETFLT="/usr/share/%PACKAGE%/src/vboxhost/vboxnetflt/build_in_tmp" 55 BUILDVBOXNETADP="/usr/share/%PACKAGE%/src/vboxhost/vboxnetadp/build_in_tmp" 54 56 fi 55 57 … … 280 282 } 281 283 284 # setup_script 282 285 setup() 283 286 { 284 287 stop 288 begin_msg "Uninstalling old VirtualBox DKMS kernel modules" 289 $DODKMS uninstall > $LOG 290 succ_msg 285 291 if find /lib/modules/`uname -r` -name "vboxnetadp\.*" 2>/dev/null|grep -q vboxnetadp; then 286 292 begin_msg "Removing old VirtualBox netadp kernel module" … … 298 304 succ_msg 299 305 fi 300 begin_msg "Recompiling VirtualBox kernel module" 301 if ! $BUILDVBOXDRV \ 302 --save-module-symvers /tmp/vboxdrv-Module.symvers \ 303 --no-print-directory install > $LOG 2>&1; then 304 failure "Look at $LOG to find out what went wrong" 305 fi 306 if ! $BUILDVBOXNETFLT \ 307 --use-module-symvers /tmp/vboxdrv-Module.symvers \ 306 begin_msg "Trying to register the VirtualBox kernel modules using DKMS" 307 if ! $DODKMS install >> $LOG; then 308 fail_msg "Failed, trying without DKMS" 309 begin_msg "Recompiling VirtualBox kernel module" 310 if ! $BUILDVBOXDRV \ 311 --save-module-symvers /tmp/vboxdrv-Module.symvers \ 312 --no-print-directory install >> $LOG 2>&1; then 313 failure "Look at $LOG to find out what went wrong" 314 fi 315 if ! $BUILDVBOXNETFLT \ 316 --use-module-symvers /tmp/vboxdrv-Module.symvers \ 317 --no-print-directory install >> $LOG 2>&1; then 318 failure "Look at $LOG to find out what went wrong" 319 fi 320 if ! $BUILDVBOXNETADP \ 321 --use-module-symvers /tmp/vboxdrv-Module.symvers \ 308 322 --no-print-directory install >> $LOG 2>&1; then 309 failure "Look at $LOG to find out what went wrong" 310 fi 311 if ! $BUILDVBOXNETADP \ 312 --use-module-symvers /tmp/vboxdrv-Module.symvers \ 313 --no-print-directory install >> $LOG 2>&1; then 314 failure "Look at $LOG to find out what went wrong" 323 failure "Look at $LOG to find out what went wrong" 324 fi 315 325 fi 316 326 rm -f /etc/vbox/module_not_compiled
Note:
See TracChangeset
for help on using the changeset viewer.