VirtualBox

Changeset 62830 in vbox


Ignore:
Timestamp:
Aug 1, 2016 4:27:49 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
109426
Message:

bugref:8480: Guest Additions: Cannot unload vboxguest on upgrade: changed the failure message that the guest drivers could not be unloaded when old Additions are removed to a warning that the user may need to reboot for changes to take effect.

File:
1 edited

Legend:

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

    r62759 r62830  
    266266        fail "Cannot unmount vboxsf folders"
    267267    fi
    268     if running_vboxsf; then
    269         rmmod vboxsf 2>/dev/null || fail "Cannot unload module vboxsf"
    270     fi
    271     if running_vboxguest; then
    272         rmmod vboxguest 2>/dev/null || fail "Cannot unload module vboxguest"
    273         rm -f $userdev || fail "Cannot unlink $userdev"
    274         rm -f $dev || fail "Cannot unlink $dev"
    275     fi
     268    modprobe -q -r -a vboxvideo vboxsf vboxguest
     269    egrep -q 'vboxguest|vboxsf|vboxvideo' /proc/modules &&
     270        echo "You may need to restart your guest system to finish removing the guest drivers."
     271    rm -f $userdev || fail "Cannot unlink $userdev"
     272    rm -f $dev || fail "Cannot unlink $dev"
    276273    succ_msg
    277274    return 0
Note: See TracChangeset for help on using the changeset viewer.

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