Changeset 101351 in vbox
- Timestamp:
- Oct 5, 2023 7:05:28 AM (19 months ago)
- svn:sync-xref-src-repo-rev:
- 159352
- Location:
- trunk/src/VBox
- Files:
-
- 4 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/Config.kmk
r98429 r101351 73 73 fedora_ks.cfg \ 74 74 ol_ks.cfg \ 75 ol9_ks.cfg \ 75 76 rhel3_ks.cfg \ 76 77 rhel4_ks.cfg \ -
trunk/src/VBox/Main/UnattendedTemplates/Makefile.kmk
r98431 r101351 44 44 redhat67_ks.cfg \ 45 45 ol_ks.cfg \ 46 ol9_ks.cfg \ 46 47 fedora_ks.cfg \ 47 48 suse_autoinstall.xml \ -
trunk/src/VBox/Main/UnattendedTemplates/ol9_ks.cfg
r101326 r101351 1 # Refer to RHEL9 kickstart reference: 2 # https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/performing_an_advanced_rhel_9_installation/kickstart-commands-and-options-reference_installing-rhel-as-an-experienced-user 3 1 4 #platform=x86, AMD64, or Intel EM64T 2 5 #version=DEVEL … … 6 9 7 10 # Install OS instead of upgrade 8 install 11 # Removed from kickstart file syntax in OL9 12 #install 9 13 10 14 # Use CDROM installation media … … 14 18 rootpw --plaintext @@VBOX_INSERT_ROOT_PASSWORD_SH@@ 15 19 20 # auth or authconfig is deprecated in OL8 16 21 # System authorization information 17 auth --useshadow --passalgo=sha51222 #auth --useshadow --passalgo=sha512 18 23 19 24 # Use text mode install … … 27 32 28 33 # Disable the unsupported hardware popup (vmmdev?). 29 unsupported_hardware 34 # Removed from kickstart file syntax in OL9 35 #unsupported_hardware 30 36 31 37 # SELinux configuration 32 38 selinux --enforcing 33 39 40 # Deprecated in OL9 34 41 # Installation logging level 35 logging --level=info42 #logging --level=info 36 43 37 44 # System timezone -
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 /** -
trunk/src/VBox/Main/src-server/UnattendedInstaller.cpp
r98292 r101351 103 103 else if (enmDetectedOSType >= VBOXOSTYPE_Oracle && enmDetectedOSType <= VBOXOSTYPE_Oracle_latest_x64) 104 104 { 105 if (RTStrVersionCompare(strDetectedOSVersion.c_str(), "8") >= 0) 105 if (RTStrVersionCompare(strDetectedOSVersion.c_str(), "9") >= 0) 106 pUinstaller = new UnattendedOracleLinux9Installer(pParent); 107 else if (RTStrVersionCompare(strDetectedOSVersion.c_str(), "8") >= 0) 106 108 pUinstaller = new UnattendedOracleLinux8Installer(pParent); 107 109 else if (RTStrVersionCompare(strDetectedOSVersion.c_str(), "7") >= 0) … … 1364 1366 */ 1365 1367 ////////////////////////////////////////////////////////////////////////////////////////////////////// 1366 HRESULT UnattendedRhel 6Installer::addFilesToAuxVisoVectors(RTCList<RTCString> &rVecArgs, RTCList<RTCString> &rVecFiles,1367 1368 HRESULT UnattendedRhelInstaller::addFilesToAuxVisoVectors(RTCList<RTCString> &rVecArgs, RTCList<RTCString> &rVecFiles, 1369 RTVFS hVfsOrgIso, bool fOverwrite) 1368 1370 { 1369 1371 Utf8Str strIsoLinuxCfg;
Note:
See TracChangeset
for help on using the changeset viewer.