VirtualBox

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


Ignore:
Timestamp:
Oct 5, 2023 7:05:28 AM (17 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
159352
Message:

Unattended: bugref:10530. Adapting kickstart file and kernel command line arguments to the new syntax introduced with OL9.

File:
1 edited

Legend:

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

    r98103 r101351  
    653653};
    654654
     655/**
     656 * RHEL installer.
     657 *
     658 * This serves as a base for the kickstart based installers.
     659 */
     660class UnattendedRhelInstaller : public UnattendedLinuxInstaller
     661{
     662public:
     663    DECLARE_TRANSLATE_METHODS(UnattendedRhelInstaller)
     664
     665    UnattendedRhelInstaller(Unattended *pParent,
     666                             const char *pszMainScriptTemplateName,
     667                             const char *pszPostScriptTemplateName,
     668                             const char *pszMainScriptFilename)
     669        : UnattendedLinuxInstaller(pParent, pszMainScriptTemplateName, pszPostScriptTemplateName, pszMainScriptFilename)
     670    {}
     671    ~UnattendedRhelInstaller() {}
     672
     673    bool isAuxiliaryIsoIsVISO()             { return true; }
     674    bool isOriginalIsoNeeded() const        { return false; }
     675
     676protected:
     677    HRESULT addFilesToAuxVisoVectors(RTCList<RTCString> &rVecArgs, RTCList<RTCString> &rVecFiles,
     678                                     RTVFS hVfsOrgIso, bool fOverwrite);
     679};
    655680
    656681/**
    657682 * RHEL 6 installer.
    658683 *
    659  * This serves as a base for the kickstart based installers.
    660  */
    661 class UnattendedRhel6Installer : public UnattendedLinuxInstaller
     684 */
     685class UnattendedRhel6Installer : public UnattendedRhelInstaller
    662686{
    663687public:
     
    668692                             const char *pszPostScriptTemplateName = "redhat_postinstall.sh",
    669693                             const char *pszMainScriptFilename     = "ks.cfg")
    670         : UnattendedLinuxInstaller(pParent, pszMainScriptTemplateName, pszPostScriptTemplateName, pszMainScriptFilename)
     694        : UnattendedRhelInstaller(pParent, pszMainScriptTemplateName, pszPostScriptTemplateName, pszMainScriptFilename)
    671695    {
    672696        Assert(!isOriginalIsoNeeded()); Assert(isAuxiliaryIsoNeeded());
     
    676700    }
    677701    ~UnattendedRhel6Installer() {}
    678 
    679     bool isAuxiliaryIsoIsVISO()             { return true; }
    680     bool isOriginalIsoNeeded() const        { return false; }
    681 
    682 protected:
    683     HRESULT addFilesToAuxVisoVectors(RTCList<RTCString> &rVecArgs, RTCList<RTCString> &rVecFiles,
    684                                      RTVFS hVfsOrgIso, bool fOverwrite);
    685702};
    686703
     
    849866};
    850867
     868/**
     869 * Oracle Linux 9 installer.
     870 * Uses a different kickstart file since several commands/options are removed in OL9.
     871 * See the ol9_ks.cfg file for comments. Also, as of OL9 kernel command argument 'ks' should have
     872 * 'inst.' prefix.
     873 */
     874class UnattendedOracleLinux9Installer : public UnattendedRhelInstaller
     875{
     876public:
     877    DECLARE_TRANSLATE_METHODS(UnattendedOracleLinux9Installer)
     878
     879    UnattendedOracleLinux9Installer(Unattended *pParent,
     880                                    const char *pszMainScriptTemplateName = "ol9_ks.cfg",
     881                                    const char *pszPostScriptTemplateName = "ol_postinstall.sh",
     882                                    const char *pszMainScriptFilename = "ks.cfg")
     883        : UnattendedRhelInstaller(pParent, pszMainScriptTemplateName, pszPostScriptTemplateName, pszMainScriptFilename)
     884    {
     885        Assert(!isOriginalIsoNeeded());
     886        Assert(isAuxiliaryIsoNeeded());
     887        Assert(!isAuxiliaryFloppyNeeded());
     888        Assert(isAuxiliaryIsoIsVISO());
     889        mStrDefaultExtraInstallKernelParameters.assign(" inst.ks=cdrom:/").append(pszMainScriptFilename).append(' ');
     890        mArrStrRemoveInstallKernelParameters.append("rd.live.check"); /* Disables the checkisomd5 step. Required for VISO. */
     891    }
     892    ~UnattendedOracleLinux9Installer() {}
     893};
     894
     895
    851896#if 0 /* fixme */
    852897/**
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