VirtualBox

Changeset 71007 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
Feb 14, 2018 12:46:17 PM (7 years ago)
Author:
vboxsync
Message:

Main,Installer: Made unattended installation of rhel5 and friends work. Fixed TXS bug in post-install script.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/UnattendedInstaller.h

    r68222 r71007  
    9393     *
    9494     * @returns Pointer to the new instance, NULL if no appropriate installer.
    95      * @param   enmOsType       The guest OS type value.
    96      * @param   strGuestOsType  The guest OS type string
    97      * @param   pParent         The parent object.  Used for setting errors and
    98      *                          querying attributes.
     95     * @param   enmOsType               The guest OS type value.
     96     * @param   strGuestOsType          The guest OS type string
     97     * @param   strDetectedOSVersion    The detected guest OS version.
     98     * @param   strDetectedOSFlavor     The detected guest OS flavor.
     99     * @param   strDetectedOSHints      Hints about the detected guest OS.
     100     * @param   pParent                 The parent object.  Used for setting errors
     101     *                                  and querying attributes.
    99102     * @throws  std::bad_alloc
    100103     */
    101     static UnattendedInstaller *createInstance(VBOXOSTYPE enmOsType, const Utf8Str &strGuestOsType, Unattended *pParent);
     104    static UnattendedInstaller *createInstance(VBOXOSTYPE enmOsType, const Utf8Str &strGuestOsType,
     105                                               const Utf8Str &strDetectedOSVersion, const Utf8Str &strDetectedOSFlavor,
     106                                               const Utf8Str &strDetectedOSHints, Unattended *pParent);
    102107
    103108    /**
     
    482487
    483488/**
    484  * RedHat 6/7 installer.
     489 * RHEL 6 and 7 installer.
    485490 *
    486491 * This serves as a base for the kickstart based installers.
    487492 */
    488 class UnattendedRedHat67Installer : public UnattendedLinuxInstaller
    489 {
    490 public:
    491     UnattendedRedHat67Installer(Unattended *pParent,
    492                                 const char *pszMainScriptTemplateName = "redhat67_ks.cfg",
    493                                 const char *pszPostScriptTemplateName = "redhat_postinstall.sh",
    494                                 const char *pszMainScriptFilename     = "ks.cfg")
     493class UnattendedRhel6And7Installer : public UnattendedLinuxInstaller
     494{
     495public:
     496    UnattendedRhel6And7Installer(Unattended *pParent,
     497                                 const char *pszMainScriptTemplateName = "redhat67_ks.cfg",
     498                                 const char *pszPostScriptTemplateName = "redhat_postinstall.sh",
     499                                 const char *pszMainScriptFilename     = "ks.cfg")
    495500          : UnattendedLinuxInstaller(pParent, pszMainScriptTemplateName, pszPostScriptTemplateName, pszMainScriptFilename)
    496501    {
     
    500505        mArrStrRemoveInstallKernelParameters.append("rd.live.check"); /* Disables the checkisomd5 step. Required for VISO. */
    501506    }
    502     ~UnattendedRedHat67Installer() {}
     507    ~UnattendedRhel6And7Installer() {}
    503508
    504509    bool isAuxiliaryIsoIsVISO()             { return true; }
     
    510515};
    511516
    512 
    513 /**
    514  * Fedora installer (same as RedHat 6/7, except for the template).
    515  */
    516 class UnattendedFedoraInstaller : public UnattendedRedHat67Installer
     517/**
     518 * RHEL 5 installer (same as RHEL 6 & 7, except for the kickstart template).
     519 */
     520class UnattendedRhel5Installer : public UnattendedRhel6And7Installer
     521{
     522public:
     523    UnattendedRhel5Installer(Unattended *pParent) : UnattendedRhel6And7Installer(pParent, "rhel5_ks.cfg") {}
     524    ~UnattendedRhel5Installer() {}
     525};
     526
     527
     528/**
     529 * Fedora installer (same as RHEL 6 & 7, except for the template).
     530 */
     531class UnattendedFedoraInstaller : public UnattendedRhel6And7Installer
    517532{
    518533public:
    519534    UnattendedFedoraInstaller(Unattended *pParent)
    520         : UnattendedRedHat67Installer(pParent, "fedora_ks.cfg")
     535        : UnattendedRhel6And7Installer(pParent, "fedora_ks.cfg")
    521536    { Assert(!isOriginalIsoNeeded()); Assert(isAuxiliaryIsoNeeded()); Assert(!isAuxiliaryFloppyNeeded()); Assert(isAuxiliaryIsoIsVISO()); }
    522537    ~UnattendedFedoraInstaller() {}
     
    525540
    526541/**
    527  * Oracle Linux installer (same as RedHat 6/7, except for the template).
    528  */
    529 class UnattendedOracleLinuxInstaller : public UnattendedRedHat67Installer
     542 * Oracle Linux installer (same as RHEL 6 & 7, except for the template).
     543 */
     544class UnattendedOracleLinuxInstaller : public UnattendedRhel6And7Installer
    530545{
    531546public:
    532547    UnattendedOracleLinuxInstaller(Unattended *pParent)
    533         : UnattendedRedHat67Installer(pParent, "ol_ks.cfg")
     548        : UnattendedRhel6And7Installer(pParent, "ol_ks.cfg")
    534549    { Assert(!isOriginalIsoNeeded()); Assert(isAuxiliaryIsoNeeded()); Assert(!isAuxiliaryFloppyNeeded()); Assert(isAuxiliaryIsoIsVISO()); }
    535550    ~UnattendedOracleLinuxInstaller() {}
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