Changeset 71007 in vbox for trunk/src/VBox/Main/include
- Timestamp:
- Feb 14, 2018 12:46:17 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/UnattendedInstaller.h
r68222 r71007 93 93 * 94 94 * @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. 99 102 * @throws std::bad_alloc 100 103 */ 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); 102 107 103 108 /** … … 482 487 483 488 /** 484 * R edHat 6/7 installer.489 * RHEL 6 and 7 installer. 485 490 * 486 491 * This serves as a base for the kickstart based installers. 487 492 */ 488 class UnattendedR edHat67Installer : public UnattendedLinuxInstaller489 { 490 public: 491 UnattendedR edHat67Installer(Unattended *pParent,492 const char *pszMainScriptTemplateName = "redhat67_ks.cfg",493 const char *pszPostScriptTemplateName = "redhat_postinstall.sh",494 const char *pszMainScriptFilename = "ks.cfg")493 class UnattendedRhel6And7Installer : public UnattendedLinuxInstaller 494 { 495 public: 496 UnattendedRhel6And7Installer(Unattended *pParent, 497 const char *pszMainScriptTemplateName = "redhat67_ks.cfg", 498 const char *pszPostScriptTemplateName = "redhat_postinstall.sh", 499 const char *pszMainScriptFilename = "ks.cfg") 495 500 : UnattendedLinuxInstaller(pParent, pszMainScriptTemplateName, pszPostScriptTemplateName, pszMainScriptFilename) 496 501 { … … 500 505 mArrStrRemoveInstallKernelParameters.append("rd.live.check"); /* Disables the checkisomd5 step. Required for VISO. */ 501 506 } 502 ~UnattendedR edHat67Installer() {}507 ~UnattendedRhel6And7Installer() {} 503 508 504 509 bool isAuxiliaryIsoIsVISO() { return true; } … … 510 515 }; 511 516 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 */ 520 class UnattendedRhel5Installer : public UnattendedRhel6And7Installer 521 { 522 public: 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 */ 531 class UnattendedFedoraInstaller : public UnattendedRhel6And7Installer 517 532 { 518 533 public: 519 534 UnattendedFedoraInstaller(Unattended *pParent) 520 : UnattendedR edHat67Installer(pParent, "fedora_ks.cfg")535 : UnattendedRhel6And7Installer(pParent, "fedora_ks.cfg") 521 536 { Assert(!isOriginalIsoNeeded()); Assert(isAuxiliaryIsoNeeded()); Assert(!isAuxiliaryFloppyNeeded()); Assert(isAuxiliaryIsoIsVISO()); } 522 537 ~UnattendedFedoraInstaller() {} … … 525 540 526 541 /** 527 * Oracle Linux installer (same as R edHat 6/7, except for the template).528 */ 529 class UnattendedOracleLinuxInstaller : public UnattendedR edHat67Installer542 * Oracle Linux installer (same as RHEL 6 & 7, except for the template). 543 */ 544 class UnattendedOracleLinuxInstaller : public UnattendedRhel6And7Installer 530 545 { 531 546 public: 532 547 UnattendedOracleLinuxInstaller(Unattended *pParent) 533 : UnattendedR edHat67Installer(pParent, "ol_ks.cfg")548 : UnattendedRhel6And7Installer(pParent, "ol_ks.cfg") 534 549 { Assert(!isOriginalIsoNeeded()); Assert(isAuxiliaryIsoNeeded()); Assert(!isAuxiliaryFloppyNeeded()); Assert(isAuxiliaryIsoIsVISO()); } 535 550 ~UnattendedOracleLinuxInstaller() {}
Note:
See TracChangeset
for help on using the changeset viewer.