VirtualBox

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


Ignore:
Timestamp:
Mar 11, 2022 2:59:01 PM (3 years ago)
Author:
vboxsync
Message:

Main/Unattended: ​​bugref:9781. Including txt.cfg directly rather than through menu.cfg. Debians default to some other menu item thus not picking our preseed file.

File:
1 edited

Legend:

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

    r93405 r94173  
    874874                    return hrc;
    875875            }
     876
     877        /* Don't include menu.cfg which may default (as most Debians do) to some vanilla menu item. txt.cfg has command
     878         * kernel line options pointing to our preseed file. */
     879        vecLineNumbers = pEditor->findTemplate("include", RTCString::CaseInsensitive);
     880        for (size_t i = 0; i < vecLineNumbers.size(); ++i)
     881            if (pEditor->getContentOfLine(vecLineNumbers[i]).startsWithWord("include", RTCString::CaseInsensitive))
     882            {
     883                HRESULT hrc = pEditor->setContentOfLine(vecLineNumbers.at(i), "include txt.cfg");
     884                if (FAILED(hrc))
     885                    return hrc;
     886            }
     887
    876888
    877889        /* Comment out 'display <filename>' directives that's used for displaying files at boot time. */
     
    13211333}
    13221334#endif
    1323 
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