VirtualBox

Changeset 101685 in vbox


Ignore:
Timestamp:
Oct 31, 2023 12:40:20 PM (15 months ago)
Author:
vboxsync
Message:

Main/Unattended|GuestOSType: Add an entry in the guest OS type to indicate the name of the additions install package instead of hardcoding it in the templates. Allows easy adaption if something changes and makes it possible to auto install guest additions for linux.arm64 guests, bugref:10542 [missing files]

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

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

    r101593 r101685  
    108108    HRESULT getRecommendedSecureBoot(BOOL *aRecommendedSecureBoot);
    109109    HRESULT getRecommendedWDDMGraphics(BOOL *aRecommendedWDDMGraphics);
     110    HRESULT getGuestAdditionsInstallPackageName(com::Utf8Str &aGuestAdditionsInstallPkgName);
    110111
    111112
     
    115116    const Utf8Str mID;
    116117    const Utf8Str mDescription;
     118    const Utf8Str mGuestAdditionsInstallPackageName;
    117119    const VBOXOSTYPE mOSType;
    118120    const uint32_t mOSHint;
  • trunk/src/VBox/Main/src-server/UnattendedInstaller.cpp

    r101633 r101685  
    8282                || enmDetectedOSType <= VBOXOSTYPE_Debian_latest_arm64))
    8383            pUinstaller = new UnattendedDebianInstaller(pParent);
    84         else if (enmDetectedOSType >= VBOXOSTYPE_Ubuntu && enmDetectedOSType <= VBOXOSTYPE_Ubuntu_latest_x64)
     84        else if (   enmDetectedOSType >= VBOXOSTYPE_Ubuntu
     85                 && (   enmDetectedOSType <= VBOXOSTYPE_Ubuntu_latest_x64
     86                     || enmDetectedOSType <= VBOXOSTYPE_Ubuntu_latest_arm64))
    8587            pUinstaller = new UnattendedUbuntuInstaller(pParent);
    8688        else if (enmDetectedOSType >= VBOXOSTYPE_RedHat && enmDetectedOSType <= VBOXOSTYPE_RedHat_latest_x64)
     
    103105        else if (enmDetectedOSType >= VBOXOSTYPE_FedoraCore && enmDetectedOSType <= VBOXOSTYPE_FedoraCore_x64)
    104106            pUinstaller = new UnattendedFedoraInstaller(pParent);
    105         else if (enmDetectedOSType >= VBOXOSTYPE_Oracle && enmDetectedOSType <= VBOXOSTYPE_Oracle_latest_x64)
     107        else if (   enmDetectedOSType >= VBOXOSTYPE_Oracle
     108                 && (   enmDetectedOSType <= VBOXOSTYPE_Oracle_latest_x64
     109                     || enmDetectedOSType <= VBOXOSTYPE_Oracle_latest_arm64))
    106110        {
    107111            if (RTStrVersionCompare(strDetectedOSVersion.c_str(), "9") >= 0)
     
    116120                pUinstaller = new UnattendedOracleLinux6Installer(pParent);
    117121        }
    118         else if (enmDetectedOSType >= VBOXOSTYPE_FreeBSD && enmDetectedOSType <= VBOXOSTYPE_FreeBSD_x64)
     122        else if (   enmDetectedOSType >= VBOXOSTYPE_FreeBSD
     123                 && (   enmDetectedOSType <= VBOXOSTYPE_FreeBSD_x64
     124                     || enmDetectedOSType <= VBOXOSTYPE_FreeBSD_arm64))
    119125            pUinstaller = new UnattendedFreeBsdInstaller(pParent);
    120126#if 0 /* doesn't work, so convert later. */
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