VirtualBox

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


Ignore:
Timestamp:
Jan 23, 2025 12:30:36 PM (4 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
167137
Message:

Main/Unattended: Add AVOID_UPDATES_OVER_NETWORK variable for expressions and disable any fetching of packages from remote repositories in the OL post install script if indicated to avoid network updates (hopefully fixes unattened testcases timing out during the post install phase because the host proxies are not set up correctly)

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/UnattendedTemplates/ol_postinstall.sh

    r106061 r107906  
    180180
    181181
     182@@VBOX_COND[${AVOID_UPDATES_OVER_NETWORK} == false]@@
    182183#
    183184# Add EPEL repository
     
    225226#
    226227log_command_in_target yum -y install cloud-init
     228@@VBOX_COND_END@@
     229
    227230log_command_in_target systemctl enable cloud-init-local.service
    228231log_command_in_target systemctl enable cloud-init.service
  • trunk/src/VBox/Main/src-server/UnattendedScript.cpp

    r107471 r107906  
    785785    else if (IS_MATCH("HAS_PROXY"))
    786786        pszValue = mpUnattended->i_getProxy().isNotEmpty() ? "1" : "0";
     787    else if (IS_MATCH("AVOID_UPDATES_OVER_NETWORK"))
     788        pszValue = mpUnattended->i_getAvoidUpdatesOverNetwork() ? "1" : "0";
    787789    /*
    788790     * Unknown variable.
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette