VirtualBox

Changeset 86270 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Sep 24, 2020 4:05:49 PM (4 years ago)
Author:
vboxsync
Message:

bugref:8527. Added the separate classes for RHEL7/8, OL7/8.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/UnattendedInstaller.cpp

    r85275 r86270  
    7474        else if (enmOsType >= VBOXOSTYPE_RedHat && enmOsType <= VBOXOSTYPE_RedHat_x64)
    7575        {
    76             if (   strDetectedOSVersion.isEmpty()
    77                 || RTStrVersionCompare(strDetectedOSVersion.c_str(), "6") >= 0)
    78                 pUinstaller = new UnattendedRhel6And7Installer(pParent);
     76            if (RTStrVersionCompare(strDetectedOSVersion.c_str(), "8") >= 0)
     77                pUinstaller = new UnattendedRhel8Installer(pParent);
     78            else if (RTStrVersionCompare(strDetectedOSVersion.c_str(), "7") >= 0)
     79                pUinstaller = new UnattendedRhel7Installer(pParent);
     80            else if (RTStrVersionCompare(strDetectedOSVersion.c_str(), "6") >= 0)
     81                pUinstaller = new UnattendedRhel6Installer(pParent);
    7982            else if (RTStrVersionCompare(strDetectedOSVersion.c_str(), "5") >= 0)
    8083                pUinstaller = new UnattendedRhel5Installer(pParent);
     
    8487                pUinstaller = new UnattendedRhel3Installer(pParent);
    8588            else
    86                 pUinstaller = new UnattendedRhel6And7Installer(pParent);
     89                pUinstaller = new UnattendedRhel6Installer(pParent);
    8790        }
    8891        else if (enmOsType >= VBOXOSTYPE_FedoraCore && enmOsType <= VBOXOSTYPE_FedoraCore_x64)
    8992            pUinstaller = new UnattendedFedoraInstaller(pParent);
    9093        else if (enmOsType >= VBOXOSTYPE_Oracle && enmOsType <= VBOXOSTYPE_Oracle_x64)
    91             pUinstaller = new UnattendedOracleLinuxInstaller(pParent);
     94        {
     95            if (RTStrVersionCompare(strDetectedOSVersion.c_str(), "8") >= 0)
     96                pUinstaller = new UnattendedOracleLinux8Installer(pParent);
     97            else if (RTStrVersionCompare(strDetectedOSVersion.c_str(), "7") >= 0)
     98                pUinstaller = new UnattendedOracleLinux7Installer(pParent);
     99            else if (RTStrVersionCompare(strDetectedOSVersion.c_str(), "6") >= 0)
     100                pUinstaller = new UnattendedOracleLinux6Installer(pParent);
     101            else
     102                pUinstaller = new UnattendedOracleLinux6Installer(pParent);
     103        }
    92104#if 0 /* doesn't work, so convert later. */
    93105        else if (enmOsType == VBOXOSTYPE_OpenSUSE || enmOsType == VBOXOSTYPE_OpenSUSE_x64)
     
    10771089*
    10781090*
    1079 *  Implementation UnattendedRhel6And7Installer functions
     1091*  Implementation UnattendedRhel6Installer functions
    10801092*
    10811093*/
    10821094//////////////////////////////////////////////////////////////////////////////////////////////////////
    1083 HRESULT UnattendedRhel6And7Installer::addFilesToAuxVisoVectors(RTCList<RTCString> &rVecArgs, RTCList<RTCString> &rVecFiles,
     1095HRESULT UnattendedRhel6Installer::addFilesToAuxVisoVectors(RTCList<RTCString> &rVecArgs, RTCList<RTCString> &rVecFiles,
    10841096                                                               RTVFS hVfsOrgIso, bool fOverwrite)
    10851097{
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