Changeset 102116 in vbox for trunk/src/VBox/Main/src-server
- Timestamp:
- Nov 15, 2023 7:41:58 PM (15 months ago)
- svn:sync-xref-src-repo-rev:
- 160237
- Location:
- trunk/src/VBox/Main/src-server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/UnattendedImpl.cpp
r101683 r102116 318 318 mfInstallGuestAdditions = false; 319 319 mfInstallTestExecService = false; 320 mfInstallUserPayload = false; 320 321 midxImage = 1; 321 322 … … 2570 2571 return setErrorBoth(E_FAIL, VERR_FILE_NOT_FOUND, tr("Could not locate the validation kit ISO file '%s'"), 2571 2572 mStrValidationKitIsoPath.c_str()); 2573 if (mfInstallUserPayload && !RTFileExists(mStrUserPayloadIsoPath.c_str())) 2574 return setErrorBoth(E_FAIL, VERR_FILE_NOT_FOUND, tr("Could not locate the User Payload ISO file '%s'"), 2575 mStrUserPayloadIsoPath.c_str()); 2572 2576 if (mStrScriptTemplatePath.isNotEmpty() && !RTFileExists(mStrScriptTemplatePath.c_str())) 2573 2577 return setErrorBoth(E_FAIL, VERR_FILE_NOT_FOUND, tr("Could not locate unattended installation script template '%s'"), … … 3522 3526 AssertReturn(mpInstaller == NULL, setErrorBoth(E_FAIL, VERR_WRONG_ORDER, tr("Cannot change after prepare() has been called"))); 3523 3527 mfInstallTestExecService = aInstallTestExecService != FALSE; 3528 return S_OK; 3529 } 3530 3531 HRESULT Unattended::getUserPayloadIsoPath(com::Utf8Str &aUserPayloadIsoPath) 3532 { 3533 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 3534 aUserPayloadIsoPath = mStrUserPayloadIsoPath; 3535 return S_OK; 3536 } 3537 3538 HRESULT Unattended::setUserPayloadIsoPath(const com::Utf8Str &aUserPayloadIsoPath) 3539 { 3540 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 3541 AssertReturn(mpInstaller == NULL, setErrorBoth(E_FAIL, VERR_WRONG_ORDER, tr("Cannot change after prepare() has been called"))); 3542 mStrUserPayloadIsoPath = aUserPayloadIsoPath; 3543 return S_OK; 3544 } 3545 3546 HRESULT Unattended::getInstallUserPayload(BOOL *aInstallUserPayload) 3547 { 3548 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 3549 *aInstallUserPayload = mfInstallUserPayload; 3550 return S_OK; 3551 } 3552 3553 HRESULT Unattended::setInstallUserPayload(BOOL aInstallUserPayload) 3554 { 3555 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 3556 AssertReturn(mpInstaller == NULL, setErrorBoth(E_FAIL, VERR_WRONG_ORDER, tr("Cannot change after prepare() has been called"))); 3557 mfInstallUserPayload = aInstallUserPayload != FALSE; 3524 3558 return S_OK; 3525 3559 } … … 4098 4132 } 4099 4133 4134 Utf8Str const &Unattended::i_getUserPayloadIsoPath() const 4135 { 4136 Assert(isReadLockedOnCurrentThread()); 4137 return mStrUserPayloadIsoPath; 4138 } 4139 4140 bool Unattended::i_getInstallUserPayload() const 4141 { 4142 Assert(isReadLockedOnCurrentThread()); 4143 return mfInstallUserPayload; 4144 } 4145 4100 4146 Utf8Str const &Unattended::i_getTimeZone() const 4101 4147 { -
trunk/src/VBox/Main/src-server/UnattendedInstaller.cpp
r101697 r102116 256 256 bool UnattendedInstaller::isAuxiliaryIsoNeeded() const 257 257 { 258 /* In the VISO case we use the AUX ISO for GAs and TXS. */258 /* In the VISO case we use the AUX ISO for GAs, TXS, and User Payloads. */ 259 259 return isAuxiliaryIsoIsVISO() 260 260 && ( mpParent->i_getInstallGuestAdditions() 261 || mpParent->i_getInstallTestExecService()); 261 || mpParent->i_getInstallTestExecService() 262 || mpParent->i_getInstallUserPayload()); 262 263 } 263 264 … … 755 756 rVecArgs.append().append("--push-iso=").append(mpParent->i_getValidationKitIsoPath()); 756 757 rVecArgs.append() = "/vboxvalidationkit=/"; 758 rVecArgs.append() = "--pop"; 759 } 760 761 /* 762 * If we've got a User Payload ISO, add its content to a /vboxuserpayload dir. 763 */ 764 if (mpParent->i_getInstallUserPayload()) 765 { 766 rVecArgs.append().append("--push-iso=").append(mpParent->i_getUserPayloadIsoPath()); 767 rVecArgs.append() = "/vboxuserpayload=/"; 757 768 rVecArgs.append() = "--pop"; 758 769 }
Note:
See TracChangeset
for help on using the changeset viewer.