@@ -362,6 +362,7 @@ fn write_row_name(mut out: impl Write, s: &str, prefix_len: usize) -> Result<()>
362
362
fn human_render_slot (
363
363
mut out : impl Write ,
364
364
slot : Slot ,
365
+ entry : & crate :: spec:: BootEntry ,
365
366
image : & crate :: spec:: ImageStatus ,
366
367
) -> Result < ( ) > {
367
368
let transport = & image. image . transport ;
@@ -407,11 +408,18 @@ fn human_render_slot(
407
408
writeln ! ( out, "{timestamp}" ) ?;
408
409
}
409
410
411
+ tracing:: debug!( "pinned={}" , entry. pinned) ;
412
+
410
413
Ok ( ( ) )
411
414
}
412
415
413
416
/// Output a rendering of a non-container boot entry.
414
- fn human_render_slot_ostree ( mut out : impl Write , slot : Slot , ostree_commit : & str ) -> Result < ( ) > {
417
+ fn human_render_slot_ostree (
418
+ mut out : impl Write ,
419
+ slot : Slot ,
420
+ entry : & crate :: spec:: BootEntry ,
421
+ ostree_commit : & str ,
422
+ ) -> Result < ( ) > {
415
423
// TODO consider rendering more ostree stuff here like rpm-ostree status does
416
424
let prefix = match slot {
417
425
Slot :: Staged => " Staged ostree" . into ( ) ,
@@ -422,6 +430,7 @@ fn human_render_slot_ostree(mut out: impl Write, slot: Slot, ostree_commit: &str
422
430
writeln ! ( out, "{prefix}" ) ?;
423
431
write_row_name ( & mut out, "Commit" , prefix_len) ?;
424
432
writeln ! ( out, "{ostree_commit}" ) ?;
433
+ tracing:: debug!( "pinned={}" , entry. pinned) ;
425
434
Ok ( ( ) )
426
435
}
427
436
@@ -439,9 +448,9 @@ fn human_readable_output_booted(mut out: impl Write, host: &Host) -> Result<()>
439
448
writeln ! ( out) ?;
440
449
}
441
450
if let Some ( image) = & host_status. image {
442
- human_render_slot ( & mut out, slot_name, image) ?;
451
+ human_render_slot ( & mut out, slot_name, host_status , image) ?;
443
452
} else if let Some ( ostree) = host_status. ostree . as_ref ( ) {
444
- human_render_slot_ostree ( & mut out, slot_name, & ostree. checksum ) ?;
453
+ human_render_slot_ostree ( & mut out, slot_name, host_status , & ostree. checksum ) ?;
445
454
} else {
446
455
writeln ! ( out, "Current {slot_name} state is unknown" ) ?;
447
456
}
0 commit comments