Changeset 101351 in vbox for trunk/src/VBox/Main/include
- Timestamp:
- Oct 5, 2023 7:05:28 AM (17 months ago)
- svn:sync-xref-src-repo-rev:
- 159352
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/UnattendedInstaller.h
r98103 r101351 653 653 }; 654 654 655 /** 656 * RHEL installer. 657 * 658 * This serves as a base for the kickstart based installers. 659 */ 660 class UnattendedRhelInstaller : public UnattendedLinuxInstaller 661 { 662 public: 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 676 protected: 677 HRESULT addFilesToAuxVisoVectors(RTCList<RTCString> &rVecArgs, RTCList<RTCString> &rVecFiles, 678 RTVFS hVfsOrgIso, bool fOverwrite); 679 }; 655 680 656 681 /** 657 682 * RHEL 6 installer. 658 683 * 659 * This serves as a base for the kickstart based installers. 660 */ 661 class UnattendedRhel6Installer : public UnattendedLinuxInstaller 684 */ 685 class UnattendedRhel6Installer : public UnattendedRhelInstaller 662 686 { 663 687 public: … … 668 692 const char *pszPostScriptTemplateName = "redhat_postinstall.sh", 669 693 const char *pszMainScriptFilename = "ks.cfg") 670 : Unattended LinuxInstaller(pParent, pszMainScriptTemplateName, pszPostScriptTemplateName, pszMainScriptFilename)694 : UnattendedRhelInstaller(pParent, pszMainScriptTemplateName, pszPostScriptTemplateName, pszMainScriptFilename) 671 695 { 672 696 Assert(!isOriginalIsoNeeded()); Assert(isAuxiliaryIsoNeeded()); … … 676 700 } 677 701 ~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);685 702 }; 686 703 … … 849 866 }; 850 867 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 */ 874 class UnattendedOracleLinux9Installer : public UnattendedRhelInstaller 875 { 876 public: 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 851 896 #if 0 /* fixme */ 852 897 /**
Note:
See TracChangeset
for help on using the changeset viewer.