VirtualBox

Changeset 93339 in vbox for trunk


Ignore:
Timestamp:
Jan 19, 2022 8:38:19 AM (3 years ago)
Author:
vboxsync
Message:

Main/UnattendedImpl: bugref:10182. Adding the string aarch64 to linux architecture detection code. Needed to detect arch. of OL 7.8 Server for example.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/UnattendedImpl.cpp

    r93311 r93339  
    817817static bool detectLinuxArch(const char *pszArch, VBOXOSTYPE *penmOsType, VBOXOSTYPE enmBaseOsType)
    818818{
    819     if (   RTStrNICmp(pszArch, RT_STR_TUPLE("amd64"))  == 0
    820         || RTStrNICmp(pszArch, RT_STR_TUPLE("x86_64")) == 0
    821         || RTStrNICmp(pszArch, RT_STR_TUPLE("x86-64")) == 0 /* just in case */
    822         || RTStrNICmp(pszArch, RT_STR_TUPLE("x64"))    == 0 /* ditto */ )
     819    if (   RTStrNICmp(pszArch, RT_STR_TUPLE("amd64"))   == 0
     820        || RTStrNICmp(pszArch, RT_STR_TUPLE("x86_64"))  == 0
     821        || RTStrNICmp(pszArch, RT_STR_TUPLE("x86-64"))  == 0 /* just in case */
     822        || RTStrNICmp(pszArch, RT_STR_TUPLE("x64"))     == 0 /* ditto */
     823        || RTStrNICmp(pszArch, RT_STR_TUPLE("aarch64")) == 0 /* as seen in OL 7.8 Server */)
    823824    {
    824825        *penmOsType = (VBOXOSTYPE)(enmBaseOsType | VBOXOSTYPE_x64);
     
    853854static bool detectLinuxArchII(const char *pszArch, VBOXOSTYPE *penmOsType, VBOXOSTYPE enmBaseOsType)
    854855{
    855     if (   RTStrIStr(pszArch, "amd64")  != NULL
    856         || RTStrIStr(pszArch, "x86_64") != NULL
    857         || RTStrIStr(pszArch, "x86-64") != NULL /* just in case */
    858         || RTStrIStr(pszArch, "x64")    != NULL /* ditto */ )
     856    if (   RTStrIStr(pszArch, "amd64")   != NULL
     857        || RTStrIStr(pszArch, "x86_64")  != NULL
     858        || RTStrIStr(pszArch, "x86-64")  != NULL /* just in case */
     859        || RTStrIStr(pszArch, "x64")     != NULL /* ditto */
     860        || RTStrIStr(pszArch, "aarch64") != NULL /* as seen in OL 7.8 Server */)
    859861    {
    860862        *penmOsType = (VBOXOSTYPE)(enmBaseOsType | VBOXOSTYPE_x64);
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