儲存庫 vbox 的更動 57986
- 時間撮記:
- 2015-10-1 下午01:05:50 (9 年 以前)
- 位置:
- trunk/src/VBox
- 檔案:
-
- 修改 5 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Additions/linux/installer/vboxadd.sh
r57971 r57986 215 215 216 216 $MODPROBE vboxguest >/dev/null 2>&1 || { 217 fail "modprobe vboxguest failed" 217 setup 218 $MODPROBE vboxguest >/dev/null 2>&1 || 219 fail "modprobe vboxguest failed" 218 220 } 219 221 case "$no_udev" in 1) -
trunk/src/VBox/Installer/linux/debian/postinst.in
r57969 r57986 78 78 fi 79 79 fi 80 81 # if INSTALL_NO_VBOXDRV is set to 1, remove all shipped modules82 if [ "$INSTALL_NO_VBOXDRV" = "1" ]; then83 rm -f /lib/modules/*/misc/vboxdrv.ko84 rm -f /lib/modules/*/misc/vboxnetflt.ko85 rm -f /lib/modules/*/misc/vboxnetadp.ko86 fi87 88 80 fi # $1 = "configure" 89 81 90 82 #DEBHELPER# 91 83 92 BUILD_MODULES=0 93 REGISTER_MODULES=1 94 # Disable module compilation with INSTALL_NO_VBOXDRV=1 in /etc/default/virtualbox 95 if [ ! -f /lib/modules/`uname -r`/misc/vboxdrv.ko ]; then 96 REGISTER_MODULES=0 84 if test "${INSTALL_NO_VBOXDRV}" = 1; then 85 POSTINST_START= 86 # if INSTALL_NO_VBOXDRV is set to 1, remove all shipped modules 97 87 if [ "$1" = "configure" ]; then 98 if [ "$INSTALL_NO_VBOXDRV" != "1" ]; then 88 rm -f /lib/modules/*/misc/vboxdrv.ko 89 rm -f /lib/modules/*/misc/vboxnetflt.ko 90 rm -f /lib/modules/*/misc/vboxnetadp.ko 91 rm -f /lib/modules/*/misc/vboxpci.ko 92 fi 93 else 94 POSTINST_START=--start 95 # Disable module compilation with INSTALL_NO_VBOXDRV=1 in /etc/default/virtualbox 96 if [ ! -f /lib/modules/`uname -r`/misc/vboxdrv.ko ]; then 97 if [ "$1" = "configure" ]; then 99 98 db_get virtualbox/module-compilation-allowed 100 99 if [ "$RET" = "false" ]; then … … 103 102 though module compilation denied by debconf setting. 104 103 EOF 104 POSTINST_START= 105 105 else 106 106 db_input low virtualbox/module-compilation-allowed || true 107 107 db_go || true 108 108 db_get virtualbox/module-compilation-allowed 109 if [ "$RET" = " true" ]; then110 BUILD_MODULES=1109 if [ "$RET" = "false" ]; then 110 POSTINST_START= 111 111 fi 112 112 fi 113 fi 114 fi # $1 = "configure" 115 fi 116 117 if [ $BUILD_MODULES -eq 1 ]; then 118 /usr/lib/virtualbox/vboxdrv.sh setup || true 113 fi # $1 = "configure" 114 fi 119 115 fi 120 116 121 117 # Install and start the new service scripts. 122 POSTINST_START=--start123 test "${INSTALL_NO_VBOXDRV}" = 1 && POSTINST_START=124 118 /usr/lib/virtualbox/prerm-common.sh || true 125 119 /usr/lib/virtualbox/postinst-common.sh /usr/lib/virtualbox "${POSTINST_START}" > /dev/null || true -
trunk/src/VBox/Installer/linux/install.sh
r57984 r57986 285 285 test -e $INSTALLATION_DIR/VBoxVolInfo && chmod 4511 $INSTALLATION_DIR/VBoxVolInfo 286 286 287 # Write the configuration. Do this before we call /sbin/rcvboxdrv setup! 287 # Write the configuration. Needs to be done before the vboxdrv service is 288 # started. 288 289 echo "# VirtualBox installation directory" > $CONFIG_DIR/$CONFIG 289 290 echo "INSTALL_DIR='$INSTALLATION_DIR'" >> $CONFIG_DIR/$CONFIG … … 363 364 install_device_node_setup "$VBOXDRV_GRP" "$VBOXDRV_MODE" "$INSTALLATION_DIR" 364 365 365 # Make kernel module366 MODULE_FAILED="false"367 if [ "$BUILD_MODULE" = "true" ]368 then369 info "Building the VirtualBox kernel modules"370 log "Output from the module build process (the Linux kernel build system) follows:"371 cur=`pwd`372 log ""373 # Start VirtualBox kernel module374 if ! ./vboxdrv.sh setup || ! ./vboxdrv.sh start; then375 info "Failed to load the kernel module."376 MODULE_FAILED="true"377 RC_SCRIPT=1378 fi379 log ""380 log "End of the output from the Linux kernel build system."381 cd $cur382 fi383 384 366 # Do post-installation common to all installer types, currently service 385 367 # script set-up. 386 START_SERVICES= 387 test "${BUILD_MODULE}" = "true" && test "${MODULE_FAILED}" = "false" && 388 START_SERVICES="--start" 368 if test "${BUILD_MODULE}" = "true"; then 369 START_SERVICES="--start" 370 else 371 START_SERVICES= 372 fi 389 373 ./postinst-common.sh "${INSTALLATION_DIR}" "${START_SERVICES}" >> "${LOG}" 390 374 -
trunk/src/VBox/Installer/linux/rpm/VirtualBox.tmpl.spec
r57969 r57986 290 290 291 291 # Disable module compilation with INSTALL_NO_VBOXDRV=1 in /etc/default/virtualbox 292 BUILD_MODULES=0 293 REGISTER_MODULES=1 294 if [ ! -f /lib/modules/`uname -r`/misc/vboxdrv.ko ]; then 295 REGISTER_MODULES=0 296 if [ "$INSTALL_NO_VBOXDRV" != "1" ]; then 292 if test "${INSTALL_NO_VBOXDRV}" = 1; then 293 POSTINST_START= 294 if lsmod | grep -q "vboxdrv[^_-]"; then 295 /usr/lib/virtualbox/vboxdrv.sh stop || true 296 fi 297 # if INSTALL_NO_VBOXDRV is set to 1, remove all shipped modules 298 rm -f /lib/modules/*/misc/vboxdrv.ko 299 rm -f /lib/modules/*/misc/vboxnetflt.ko 300 rm -f /lib/modules/*/misc/vboxnetadp.ko 301 rm -f /lib/modules/*/misc/vboxpci.ko 302 else 303 POSTINST_START=--start 304 if [ ! -f /lib/modules/`uname -r`/misc/vboxdrv.ko ]; then 297 305 # compile problem 298 306 cat << EOF … … 301 309 302 310 EOF 303 BUILD_MODULES=1304 fi305 fi306 # if INSTALL_NO_VBOXDRV is set to 1, remove all shipped modules307 if [ "$INSTALL_NO_VBOXDRV" = "1" ]; then308 rm -f /lib/modules/*/misc/vboxdrv.ko309 rm -f /lib/modules/*/misc/vboxnetflt.ko310 rm -f /lib/modules/*/misc/vboxnetadp.ko311 rm -f /lib/modules/*/misc/vboxpci.ko312 fi313 if [ $BUILD_MODULES -eq 1 ]; then314 /usr/lib/virtualbox/vboxdrv.sh setup || true315 else316 if lsmod | grep -q "vboxdrv[^_-]"; then317 /usr/lib/virtualbox/vboxdrv.sh stop || true318 311 fi 319 312 fi 320 313 # Install and start the new service scripts. 321 POSTINST_START=--start322 test "${INSTALL_NO_VBOXDRV}" = 1 && POSTINST_START=323 314 /usr/lib/virtualbox/prerm-common.sh || true 324 315 /usr/lib/virtualbox/postinst-common.sh /usr/lib/virtualbox "${POSTINST_START}" > /dev/null || true -
trunk/src/VBox/Installer/linux/vboxdrv.sh.in
r57971 r57986 104 104 fi 105 105 if ! $MODPROBE vboxdrv > /dev/null 2>&1; then 106 failure "modprobe vboxdrv failed. Please use 'dmesg' to find out why" 106 setup 107 if ! $MODPROBE vboxdrv > /dev/null 2>&1; then 108 failure "modprobe vboxdrv failed. Please use 'dmesg' to find out why" 109 fi 107 110 fi 108 111 sleep .2 … … 234 237 { 235 238 begin_msg "Building VirtualBox kernel modules" console 236 stop 239 stop >/dev/null 237 240 if find /lib/modules/`uname -r` -name "vboxpci\.*" 2>/dev/null|grep -q vboxpci; then 238 241 begin_msg "Removing old VirtualBox pci kernel module" … … 282 285 rm -f /etc/vbox/module_not_compiled 283 286 succ_msg 284 start285 287 } 286 288 … … 335 337 start 336 338 ;; 337 setup)338 setup339 ;;340 339 status) 341 340 dmnstatus 342 341 ;; 343 342 *) 344 echo "Usage: $0 {start|stop|stop_vms|restart|force-reload|status |setup}"343 echo "Usage: $0 {start|stop|stop_vms|restart|force-reload|status}" 345 344 exit 1 346 345 esac
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器