VirtualBox

Changeset 93358 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Jan 20, 2022 11:18:59 AM (3 years ago)
Author:
vboxsync
Message:

Reverting r149411: 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

    r93339 r93358  
    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 */
    823         || RTStrNICmp(pszArch, RT_STR_TUPLE("aarch64")) == 0 /* as seen in OL 7.8 Server */)
     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 */ )
    824823    {
    825824        *penmOsType = (VBOXOSTYPE)(enmBaseOsType | VBOXOSTYPE_x64);
     
    854853static bool detectLinuxArchII(const char *pszArch, VBOXOSTYPE *penmOsType, VBOXOSTYPE enmBaseOsType)
    855854{
    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 */)
     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 */ )
    861859    {
    862860        *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