Skip to content

Commit 28b3cfb

Browse files
composefs-native: Minor fixes
Fix typo in error message Unhardcode transport while pulling a composefs repository on switch Signed-off-by: Pragyan Poudyal <[email protected]>
1 parent 11672aa commit 28b3cfb

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

crates/lib/src/bootc_composefs/repo.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,7 @@ pub(crate) async fn pull_composefs_repo(
7575
.await
7676
.context("Pulling composefs repo")?;
7777

78-
tracing::debug!(
79-
"id = {id}, verity = {verity}",
80-
id = hex::encode(id),
81-
verity = verity.to_hex()
82-
);
78+
tracing::info!("id: {}, verity: {}", hex::encode(id), verity.to_hex());
8379

8480
let repo = open_composefs_repo(&rootfs_dir)?;
8581
let mut fs = create_composefs_filesystem(&repo, &hex::encode(id), None)

crates/lib/src/bootc_composefs/state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ pub(crate) fn write_composefs_state(
145145
format!("{}.origin", deployment_id.to_hex()),
146146
config.to_string().as_bytes(),
147147
)
148-
.context("Falied to write to .origin file")?;
148+
.context("Failed to write to .origin file")?;
149149

150150
if staged {
151151
std::fs::create_dir_all(COMPOSEFS_TRANSIENT_STATE_DIR)

crates/lib/src/bootc_composefs/switch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pub(crate) async fn switch_composefs(opts: SwitchOpts) -> Result<()> {
3737
};
3838

3939
let (repo, entries, id, fs) =
40-
pull_composefs_repo(&"docker".into(), &target_imgref.image).await?;
40+
pull_composefs_repo(&target_imgref.transport, &target_imgref.image).await?;
4141

4242
let Some(entry) = entries.into_iter().next() else {
4343
anyhow::bail!("No boot entries!");

0 commit comments

Comments
 (0)