Bind prepared artifact selection against reclaim
This commit is contained in:
parent
d799cf4837
commit
1bd1d395d9
1 changed files with 209 additions and 21 deletions
|
|
@ -16,6 +16,7 @@ use lazaret_core::records::{
|
|||
Generation, GenerationIdentity, HostProcessOwnershipSlot, PreparedArtifact, Session,
|
||||
};
|
||||
use lazaret_ignored_workspace::git_common_directory;
|
||||
use lazaret_linux::filesystem::SharedFileLock;
|
||||
use lazaret_linux::filesystem::{RegularFileMailbox, mount_identity, namespace_identity};
|
||||
use lazaret_linux::process::{
|
||||
ProcessOwnershipContext, TargetCommand, child_broker, current_process_identity,
|
||||
|
|
@ -76,6 +77,7 @@ pub struct ColdStartInputs<'a> {
|
|||
pub generation: Generation,
|
||||
pub prepared_artifact: &'a PreparedArtifact,
|
||||
pub prepared_artifact_authority: &'a File,
|
||||
pub prepared_artifact_selection: SharedFileLock,
|
||||
pub prepared_artifact_label: &'a Path,
|
||||
pub root_process: RootProcess,
|
||||
pub container_id: ContainerId,
|
||||
|
|
@ -135,6 +137,7 @@ pub struct ColdStart<'a> {
|
|||
generation_identity: GenerationIdentity,
|
||||
prepared_artifact: &'a PreparedArtifact,
|
||||
state_anchor_layout: StateAnchorLayout<'a>,
|
||||
prepared_artifact_selection: Option<SharedFileLock>,
|
||||
runtime_launch: Option<RuntimeSupervisorLaunch>,
|
||||
sandbox_bundle: SandboxBundle,
|
||||
network_policy: lazaret_core::network::CanonicalDerivedNetworkPolicy,
|
||||
|
|
@ -256,6 +259,7 @@ impl<'a> ColdStart<'a> {
|
|||
generation_identity,
|
||||
prepared_artifact: inputs.prepared_artifact,
|
||||
state_anchor_layout,
|
||||
prepared_artifact_selection: Some(inputs.prepared_artifact_selection),
|
||||
runtime_launch: Some(runtime_launch),
|
||||
sandbox_bundle,
|
||||
network_policy,
|
||||
|
|
@ -371,6 +375,7 @@ impl<'a> ColdStart<'a> {
|
|||
configuration: self.configuration,
|
||||
generation_identity: self.generation_identity.clone(),
|
||||
prepared_artifact: self.prepared_artifact,
|
||||
prepared_artifact_selection: self.prepared_artifact_selection.take(),
|
||||
state_anchor_layout: &self.state_anchor_layout,
|
||||
runtime_launch: self
|
||||
.runtime_launch
|
||||
|
|
|
|||
Loading…
Reference in a new issue