VirtualBox

Changeset 58090 in vbox for trunk


Ignore:
Timestamp:
Oct 7, 2015 12:49:43 PM (9 years ago)
Author:
vboxsync
Message:

Installers/linux: provide clean-up mechanism for upgrade hiccups from 5.0.4 and earlier to later versions.

Location:
trunk/src/VBox
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/main.cpp

    r57984 r58090  
    103103    "there is a permission problem with /dev/vboxdrv. Please reinstall the kernel "
    104104    "module by executing<br/><br/>"
    105     "  <font color=blue>'/sbin/rcvboxdrv setup'</font><br/><br/>"
     105    "  <font color=blue>'/sbin/vboxconfig'</font><br/><br/>"
    106106    "as root. If it is available in your distribution, you should install the "
    107107    "DKMS package first. This package keeps track of Linux kernel changes and "
     
    120120    "VirtualBox. The installation of VirtualBox was apparently not "
    121121    "successful. Executing<br/><br/>"
    122     "  <font color=blue>'/sbin/rcvboxdrv setup'</font><br/><br/>"
     122    "  <font color=blue>'/sbin/vboxconfig'</font><br/><br/>"
    123123    "may correct this. Make sure that you do not mix the "
    124124    "OSE version and the PUEL version of VirtualBox."
  • trunk/src/VBox/Installer/linux/VBox.sh

    r57984 r58090  
    4141         load. Please recompile the kernel module and install it by
    4242
    43            sudo /sbin/rcvboxdrv setup
     43           sudo /sbin/vboxconfig
    4444
    4545         You will not be able to start VMs until this problem is fixed.
     
    4949WARNING: The character device /dev/vboxdrv does not exist. Try
    5050
    51            sudo /sbin/rcvboxdrv restart
     51           sudo /sbin/vboxconfig
    5252
    5353         and if that is not successful, try to re-install the package.
  • trunk/src/VBox/Installer/linux/debian/postinst.in

    r57986 r58090  
    8383
    8484if test "${INSTALL_NO_VBOXDRV}" = 1; then
    85   POSTINST_START=
     85  POSTINST_START=--nostart
    8686  # if INSTALL_NO_VBOXDRV is set to 1, remove all shipped modules
    8787  if [ "$1" = "configure" ]; then
     
    9292  fi
    9393else
    94   POSTINST_START=--start
     94  POSTINST_START=
    9595  # Disable module compilation with INSTALL_NO_VBOXDRV=1 in /etc/default/virtualbox
    9696  if [ ! -f /lib/modules/`uname -r`/misc/vboxdrv.ko ]; then
     
    102102though module compilation denied by debconf setting.
    103103EOF
    104         POSTINST_START=
     104        POSTINST_START=--nostart
    105105      else
    106106        db_input low virtualbox/module-compilation-allowed || true
     
    108108        db_get virtualbox/module-compilation-allowed
    109109        if [ "$RET" = "false" ]; then
    110           POSTINST_START=
     110          POSTINST_START=--nostart
    111111        fi
    112112      fi
     
    117117# Install and start the new service scripts.
    118118/usr/lib/virtualbox/prerm-common.sh || true
    119 /usr/lib/virtualbox/postinst-common.sh /usr/lib/virtualbox "${POSTINST_START}" > /dev/null || true
     119/usr/lib/virtualbox/postinst-common.sh ${POSTINST_START} > /dev/null || true
    120120
    121121exit 0
  • trunk/src/VBox/Installer/linux/debian/templates

    r57984 r58090  
    1717 by 'uname -r') and execute
    1818   
    19    /sbin/rcvboxdrv setup
     19   /sbin/vboxconfig
    2020   
    2121 as root.
     
    2828 'uname -r' herausfinden können) und führen Sie danach
    2929   
    30    /sbin/rcvboxdrv setup
     30   /sbin/vboxconfig
    3131   
    3232 mit Root-Rechten aus.
     
    4646 build the module later by executing
    4747   
    48    /sbin/rcvboxdrv setup
     48   /sbin/vboxconfig
    4949   
    5050 as root.
     
    6060 später compilieren, indem Sie
    6161   
    62    /sbin/rcvboxdrv setup
     62   /sbin/vboxconfig
    6363   
    6464 mit Root-Rechten ausführen.
     
    7272 of the module later by executing
    7373   
    74    /sbin/rcvboxdrv setup
     74   /sbin/vboxconfig
    7575   
    7676 as root.
     
    8080 des Kernmoduls können Sie später durch
    8181   
    82    /sbin/rcvboxdrv setup
     82   /sbin/vboxconfig
    8383   
    8484 erzwingen.
  • trunk/src/VBox/Installer/linux/install.sh

    r57986 r58090  
    367367    # script set-up.
    368368    if test "${BUILD_MODULE}" = "true"; then
    369       START_SERVICES="--start"
     369      START_SERVICES=
    370370    else
    371       START_SERVICES=
    372     fi
    373     ./postinst-common.sh "${INSTALLATION_DIR}" "${START_SERVICES}" >> "${LOG}"
     371      START_SERVICES="--nostart"
     372    fi
     373    "${INSTALLATION_DIR}/postinst-common.sh" ${START_SERVICES} >> "${LOG}"
    374374
    375375    info ""
     
    380380        info "VirtualBox has been installed successfully, but the kernel module could not"
    381381        info "be built.  When you have fixed the problems preventing this, execute"
    382         info "  /sbin/rcvboxdrv setup"
     382        info "  /sbin/vboxconfig"
    383383        info "as administrator to build it."
    384384    fi
  • trunk/src/VBox/Installer/linux/postinst-common.sh

    r57969 r58090  
    2727. "./routines.sh"
    2828
    29 START=
    30 TARGET=
    31 for i in "$@"
    32 do
    33     case "${i}" in
    34         --start)
    35             START=true
     29START=true
     30TARGET="${MY_PATH}"
     31while test -n "${1}"; do
     32    case "${1}" in
     33        --nostart)
     34            START=
    3635            ;;
    3736        *)
    38             if test -z "${TARGET}" && test -d "${i}"; then
    39                 TARGET="${i}"
    40             else
    41                 echo "Bad argument ${i}" >&2
    42                 exit 1
    43             fi
     37            echo "Bad argument ${1}" >&2
     38            exit 1
    4439            ;;
    4540    esac
     41    shift
    4642done
    47 
    48 if test -z "${TARGET}"; then
    49     echo "$0: no installation target specified." >&2
    50     exit 1
    51 fi
    5243
    5344# Remove any traces of DKMS from previous installations.
     
    7162addrunlevel vboxweb-service
    7263
     64ln -sf "${MY_PATH}/postinst-common.sh" /sbin/vboxconfig
     65
    7366test -n "${START}" &&
    7467{
  • trunk/src/VBox/Installer/linux/prerm-common.sh

    r57969 r58090  
    5858delrunlevel vboxnet 2>/dev/null
    5959remove_init_script vboxnet 2>/dev/null
     60rm -f /sbin/vboxconfig
    6061exit 0
  • trunk/src/VBox/Installer/linux/rpm/VirtualBox.tmpl.spec

    r58010 r58090  
    291291# Disable module compilation with INSTALL_NO_VBOXDRV=1 in /etc/default/virtualbox
    292292if test "${INSTALL_NO_VBOXDRV}" = 1; then
    293   POSTINST_START=
     293  POSTINST_START=--nostart
    294294  if lsmod | grep -q "vboxdrv[^_-]"; then
    295295    /usr/lib/virtualbox/vboxdrv.sh stop || true
     
    301301  rm -f /lib/modules/*/misc/vboxpci.ko
    302302else
    303   POSTINST_START=--start
     303  POSTINST_START=
    304304  if [ ! -f /lib/modules/`uname -r`/misc/vboxdrv.ko ]; then
    305305    # compile problem
     
    313313# Install and start the new service scripts.
    314314/usr/lib/virtualbox/prerm-common.sh || true
    315 /usr/lib/virtualbox/postinst-common.sh /usr/lib/virtualbox "${POSTINST_START}" > /dev/null || true
     315/usr/lib/virtualbox/postinst-common.sh ${POSTINST_START} > /dev/null || true
    316316
    317317
  • trunk/src/VBox/VMM/VMMR3/VM.cpp

    r57984 r58090  
    316316                                  "that no kernel modules from an older version of VirtualBox exist. "
    317317                                  "Then try to recompile and reload the kernel modules by executing "
    318                                   "'/sbin/rcvboxdrv setup' as root");
     318                                  "'/sbin/vboxconfig' as root");
    319319                    break;
    320320#endif
     
    382382                                  "was either not loaded or /dev/vboxdrv is not set up properly. "
    383383                                  "Re-setup the kernel module by executing "
    384                                   "'/sbin/rcvboxdrv setup' as root");
     384                                  "'/sbin/vboxconfig' as root");
    385385#else
    386386                    pszError = N_("VirtualBox kernel driver not loaded");
     
    424424                                  "was either not loaded or /dev/vboxdrv was not created for some "
    425425                                  "reason. Re-setup the kernel module by executing "
    426                                   "'/sbin/rcvboxdrv setup' as root");
     426                                  "'/sbin/vboxconfig' as root");
    427427#else
    428428                    pszError = N_("VirtualBox kernel driver not installed");
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