VirtualBox

Changeset 24402 in vbox


Ignore:
Timestamp:
Nov 5, 2009 5:11:02 PM (15 years ago)
Author:
vboxsync
Message:

Additions/linux/installer: more fixes

Location:
trunk/src/VBox/Additions/linux
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/Makefile.kmk

    r24380 r24402  
    412412        $(QUIET)tar --owner 0 --group 0 -cRf $(patsubst %.bz2,%,$@) \
    413413                -C $(VBOX_LNX_ADD_INST_OUT_DIR) \
    414                 $(subst $(VBOX_LNX_ADD_INST_OUT_DIR)/,,$(VBOX_LNX_ADD_ARCH_FILES))
     414                bin debug init lib sbin share src
    415415        $(QUIET)pbzip2 $(patsubst %.bz2,%,$@)
    416416else
    417417        $(QUIET)tar --owner 0 --group 0 -cjRf $@ \
    418418                -C $(VBOX_LNX_ADD_INST_OUT_DIR) \
    419                 $(subst $(VBOX_LNX_ADD_INST_OUT_DIR)/,,$(VBOX_LNX_ADD_ARCH_FILES))
     419                bin debug init lib sbin share src
    420420endif
    421421        $(QUIET)$(CHMOD) 0644 $@
  • trunk/src/VBox/Additions/linux/installer/vboxadd.sh

    r24361 r24402  
    3434
    3535PATH=$PATH:/bin:/sbin:/usr/sbin
     36PACKAGE=VBoxGuestAdditions
    3637BUILDVBOXGUEST=`/bin/ls /usr/src/vboxguest*/build_in_tmp 2>/dev/null|cut -d' ' -f1`
    3738BUILDVBOXVFS=`/bin/ls /usr/src/vboxvfs*/build_in_tmp 2>/dev/null|cut -d' ' -f1`
     
    172173start()
    173174{
    174     begin "Starting VirtualBox Additions ";
     175    begin "Starting the VirtualBox Guest Additions ";
    175176    running_vboxguest || {
    176177        rm -f $dev || {
     
    284285{
    285286    # don't stop the old modules here -- they might be in use
     287    if find /lib/modules/`uname -r` -name "vboxvideo\.*" 2>/dev/null|grep -q vboxvideo; then
     288        begin "Removing old VirtualBox vboxvideo kernel module"
     289        find /lib/modules/`uname -r` -name "vboxvideo\.*" 2>/dev/null|xargs rm -f 2>/dev/null
     290        succ_msg
     291    fi
    286292    if find /lib/modules/`uname -r` -name "vboxvfs\.*" 2>/dev/null|grep -q vboxvfs; then
    287293        begin "Removing old VirtualBox vboxvfs kernel module"
     
    294300        succ_msg
    295301    fi
    296     echo "Building VirtualBox kernel modules"
     302    begin "Building the VirtualBox kernel modules"
     303    if ! sh /usr/share/$PACKAGE/test/build_in_tmp \
     304        --no-print-directory > $LOG 2>&1; then
     305        fail "`printf "Your system does not seem to be set up to build kernel modules.\nLook at $LOG to find out what went wrong"`"
     306    fi
     307    echo
     308    if ! sh /usr/share/$PACKAGE/test_drm/build_in_tmp \
     309        --no-print-directory > $LOG 2>&1; then
     310        printf "Your system does not seem to support OpenGL in the kernel (this requires\nLinux 2.6.27 or later).  The OpenGL support will not be built.\n"
     311        BUILDVBOXVIDEO=""
     312    fi
    297313    begin "Building the main VirtualBox module"
    298314    if ! $BUILDVBOXGUEST \
     
    357373
    358374    # Put mount.vboxsf in the right place
    359     ln -s /usr/lib/VBoxGuestAdditions/mount.vboxsf /sbin
     375    ln -s /usr/lib/$PACKAGE/mount.vboxsf /sbin
    360376
    361377    succ_msg
     
    395411    # Remove other files
    396412    rm /sbin/mount.vboxsf 2>/dev/null
     413    rm /etc/udev/rules.d/60-vboxadd.rules 2>/dev/null
    397414}
    398415
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