VirtualBox

Changeset 30295 in vbox for trunk/src


Ignore:
Timestamp:
Jun 17, 2010 10:42:48 PM (15 years ago)
Author:
vboxsync
Message:

Additions/linux/installer: make sure the rest of the installation succeeds even if the modules cannot be built

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/installer/vboxadd.sh

    r30158 r30295  
    178178        fi
    179179    fi
    180     printf "\nThe headers for the current running kernel are not found. If the following\nmodule compilation fails then this could be the reason.\n"
     180    printf "\nThe headers for the current running kernel were not found. If the following\nmodule compilation fails then this could be the reason.\n"
    181181    if [ "$system" = "redhat" ]; then
    182182        printf "The missing package can be probably installed with\nyum install kernel-devel-$KERN_VER\n"
     
    348348    if ! sh /usr/share/$PACKAGE/test/build_in_tmp \
    349349        --no-dkms --no-print-directory > $LOG 2>&1; then
    350         fail "`printf "Your system does not seem to be set up to build kernel modules.\nLook at $LOG to find out what went wrong"`"
     350        fail_msg
     351        printf "Your system does not seem to be set up to build kernel modules.\nLook at $LOG to find out what went wrong.  Once you have corrected it, you can\nrun\n\n  /etc/init.d/vboxadd setup\n\nto build them."
     352        BUILDVBOXGUEST=""
     353        BUILDVBOXSF=""
     354        BUILDVBOXVIDEO=""
     355    else
     356        if ! sh /usr/share/$PACKAGE/test_drm/build_in_tmp \
     357            --no-dkms --no-print-directory >> $LOG 2>&1; then
     358            printf "\nYour guest system does not seem to have sufficient OpenGL support to enable\naccelerated 3D effects (this requires Linux 2.6.27 or later in the guest\nsystem).  This Guest Additions feature will be disabled.\n\n"
     359            BUILDVBOXVIDEO=""
     360        fi
    351361    fi
    352362    echo
    353     if ! sh /usr/share/$PACKAGE/test_drm/build_in_tmp \
    354         --no-dkms --no-print-directory >> $LOG 2>&1; then
    355         printf "\nYour guest system does not seem to have sufficient OpenGL support to enable\naccelerated 3D effects (this requires Linux 2.6.27 or later in the guest\nsystem).  This Guest Additions feature will be disabled.\n\n"
    356         BUILDVBOXVIDEO=""
    357     fi
    358     begin "Building the main Guest Additions module"
    359     if ! $BUILDVBOXGUEST \
    360         --save-module-symvers /tmp/vboxguest-Module.symvers \
    361         --no-print-directory install >> $LOG 2>&1; then
    362         fail "Look at $LOG to find out what went wrong"
    363     fi
    364     succ_msg
     363    if [ -n "$BUILDVBOXGUEST" ]; then
     364        begin "Building the main Guest Additions module"
     365        if ! $BUILDVBOXGUEST \
     366            --save-module-symvers /tmp/vboxguest-Module.symvers \
     367            --no-print-directory install >> $LOG 2>&1; then
     368            fail "Look at $LOG to find out what went wrong"
     369        fi
     370        succ_msg
     371    fi
    365372    if [ -n "$BUILDVBOXSF" ]; then
    366373        begin "Building the shared folder support module"
     
    424431
    425432    succ_msg
    426     if running_vboxguest || running_vboxadd; then
    427         printf "You should restart your guest to make sure the new modules are actually used\n\n"
    428     else
    429         start
     433    if [ -n "$BUILDVBOXGUEST" ]; then
     434        if running_vboxguest || running_vboxadd; then
     435            printf "You should restart your guest to make sure the new modules are actually used\n\n"
     436        else
     437            start
     438        fi
    430439    fi
    431440}
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette