Skip to content

Commit

Permalink
Merge pull request #732 from cgwalters/storage-prep
Browse files Browse the repository at this point in the history
cli: Thread Storage through more places
  • Loading branch information
jeckersb committed Jul 26, 2024
2 parents 0a58a6a + a37ca01 commit cf6c028
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions lib/src/deploy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ pub(crate) async fn pull(
Ok(Box::new((*import).into()))
}

pub(crate) async fn cleanup(sysroot: &SysrootLock) -> Result<()> {
pub(crate) async fn cleanup(sysroot: &Storage) -> Result<()> {
// We create clones (just atomic reference bumps) here to move to the thread.
let repo = sysroot.repo();
let sysroot = sysroot.sysroot.clone();
Expand Down Expand Up @@ -329,7 +329,7 @@ pub(crate) fn get_base_commit(repo: &ostree::Repo, commit: &str) -> Result<Optio

#[context("Writing deployment")]
async fn deploy(
sysroot: &SysrootLock,
sysroot: &Storage,
merge_deployment: Option<&Deployment>,
stateroot: &str,
image: &ImageState,
Expand Down Expand Up @@ -383,7 +383,7 @@ fn origin_from_imageref(imgref: &ImageReference) -> Result<glib::KeyFile> {
/// Stage (queue deployment of) a fetched container image.
#[context("Staging")]
pub(crate) async fn stage(
sysroot: &SysrootLock,
sysroot: &Storage,
stateroot: &str,
image: &ImageState,
spec: &RequiredHostSpec<'_>,
Expand Down
4 changes: 2 additions & 2 deletions lib/src/kargs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ use ostree_ext::ostree::Deployment;
use ostree_ext::prelude::Cast;
use ostree_ext::prelude::FileEnumeratorExt;
use ostree_ext::prelude::FileExt;
use ostree_ext::sysroot::SysrootLock;
use serde::Deserialize;

use crate::deploy::ImageState;
use crate::store::Storage;

/// The kargs.d configuration file.
#[derive(Deserialize)]
Expand Down Expand Up @@ -96,7 +96,7 @@ fn get_kargs_from_ostree(
/// karg, but applies the diff between the bootc karg files in /usr/lib/bootc/kargs.d
/// between the booted deployment and the new one.
pub(crate) fn get_kargs(
sysroot: &SysrootLock,
sysroot: &Storage,
merge_deployment: &Deployment,
fetched: &ImageState,
) -> Result<Vec<String>> {
Expand Down

0 comments on commit cf6c028

Please sign in to comment.