VirtualBox

Changeset 98729 in vbox for trunk/src


Ignore:
Timestamp:
Feb 24, 2023 7:04:45 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
156030
Message:

Main: Linux Additions upgrade: Fix path to rcvboxadd and user notifications, bugref:10359.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/GuestSessionImplTasks.h

    r98690 r98729  
    419419    int addProcessArguments(ProcessArguments &aArgumentsDest, const ProcessArguments &aArgumentsSource);
    420420    int copyFileToGuest(GuestSession *pSession, RTVFS hVfsIso, Utf8Str const &strFileSource, const Utf8Str &strFileDest, bool fOptional);
    421     int runFileOnGuest(GuestSession *pSession, GuestProcessStartupInfo &procInfo);
     421    int runFileOnGuest(GuestSession *pSession, GuestProcessStartupInfo &procInfo, bool fSilent = false);
    422422
    423423    int checkGuestAdditionsStatus(GuestSession *pSession, eOSType osType);
  • trunk/src/VBox/Main/src-client/GuestSessionImplTasks.cpp

    r98692 r98729  
    26232623 * @param   pSession            Guest session to use.
    26242624 * @param   procInfo            Guest process startup info to use.
     2625 * @param   fSilent             Whether to set progress into failure state in case of error.
    26252626 */
    2626 int GuestSessionTaskUpdateAdditions::runFileOnGuest(GuestSession *pSession, GuestProcessStartupInfo &procInfo)
     2627int GuestSessionTaskUpdateAdditions::runFileOnGuest(GuestSession *pSession, GuestProcessStartupInfo &procInfo, bool fSilent)
    26272628{
    26282629    AssertPtrReturn(pSession, VERR_INVALID_POINTER);
     
    26412642    }
    26422643
    2643     if (RT_FAILURE(vrc))
     2644    if (   RT_FAILURE(vrc)
     2645        && !fSilent)
    26442646    {
    26452647        switch (vrc)
     
    26882690    if (osType == eOSType_Linux)
    26892691    {
    2690         const Utf8Str ksStatusScript = Utf8Str("/usr/sbin/rcvboxadd");
     2692        const Utf8Str ksStatusScript = Utf8Str("/sbin/rcvboxadd");
    26912693
    26922694        /* Check if Guest Additions kernel modules were loaded. */
     
    26982700        procInfo.mArguments.push_back("status-kernel");
    26992701
    2700         vrc = runFileOnGuest(pSession, procInfo);
     2702        vrc = runFileOnGuest(pSession, procInfo, true /* fSilent */);
    27012703        if (RT_SUCCESS(vrc))
    27022704        {
     
    27062708            procInfo.mArguments.push_back("status-user");
    27072709
    2708             vrc = runFileOnGuest(pSession, procInfo);
     2710            vrc = runFileOnGuest(pSession, procInfo, true /* fSilent */);
    27092711            if (RT_FAILURE(vrc))
    27102712                hrc = setProgressErrorMsg(VBOX_E_GSTCTL_GUEST_ERROR,
     
    32903292                                hrc = setProgressErrorMsg(VBOX_E_IPRT_ERROR,
    32913293                                                          Utf8StrFmt(tr("Automatic update of Guest Additions has failed: "
    3292                                                                         "guest services were not restarted, please reinstall Guest Additions")));
     3294                                                                        "guest services were not restarted, please reinstall Guest Additions manually")));
    32933295                        }
    32943296                        else
     
    32973299                            hrc = setProgressErrorMsg(VBOX_E_IPRT_ERROR,
    32983300                                                      Utf8StrFmt(tr("Old guest session is still active, guest services were not restarted "
    3299                                                                     "after installation, please reinstall Guest Additions")));
     3301                                                                    "after installation, please reinstall Guest Additions manually")));
    33003302                        }
    33013303                    }
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