VirtualBox

Changeset 33665 in vbox


Ignore:
Timestamp:
Nov 1, 2010 4:31:56 PM (14 years ago)
Author:
vboxsync
Message:

Main-OVF: allow overwriting of the OS type; prefer the OS type from a vbox.xml, over the OVF one

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ApplianceImplImport.cpp

    r33651 r33665  
    164164
    165165            /* Guest OS type */
    166             Utf8Str strOsTypeVBox,
    167                     strCIMOSType = Utf8StrFmt("%RI32", (uint32_t)vsysThis.cimos);
     166            Utf8Str strOsTypeVBox;
     167            Utf8Str strCIMOSType = Utf8StrFmt("%RI32", (uint32_t)vsysThis.cimos);
    168168            convertCIMOSType2VBoxOSType(strOsTypeVBox, vsysThis.cimos, vsysThis.strCimosDesc);
     169            /* If there is a vbox.xml, we always prefer the ostype settings
     170             * from there, cause OVF doesn't know all types VBox know. */
     171            if (vsysThis.pelmVboxMachine)
     172                strOsTypeVBox = pNewDesc->m->pConfig->machineUserData.strOsType;
    169173            pNewDesc->addEntry(VirtualSystemDescriptionType_OS,
    170174                               "",
     
    23702374     */
    23712375
     2376    config.machineUserData.strOsType = stack.strOsTypeVBox;
    23722377    config.machineUserData.strDescription = stack.strDescription;
    23732378
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