@@ -421,7 +421,7 @@ fn human_render_imagestatus(
421421 // Only show the usr filesystem overlay state if we are booted and not the default
422422 // read-only mode.
423423 if slot == Slot :: Booted && * usr_overlay != FilesystemOverlay :: Readonly {
424- write_row_name ( & mut out, "Usr overlay" , prefix_len) ?;
424+ write_row_name ( & mut out, "/usr overlay" , prefix_len) ?;
425425 writeln ! ( out, "{}" , usr_overlay. to_human_string( ) ) ?;
426426 }
427427 }
@@ -450,7 +450,7 @@ fn human_render_ostree(
450450 // Only show the usr filesystem overlay state if we are booted and not the default
451451 // read-only mode.
452452 if slot == Slot :: Booted && * usr_overlay != FilesystemOverlay :: Readonly {
453- write_row_name ( & mut out, "Usr overlay" , prefix_len) ?;
453+ write_row_name ( & mut out, "/usr overlay" , prefix_len) ?;
454454 writeln ! ( out, "{}" , usr_overlay. to_human_string( ) ) ?;
455455 }
456456 }
@@ -612,4 +612,18 @@ mod tests {
612612 Some ( ImageSignature :: OstreeRemote ( "fedora" . into( ) ) )
613613 ) ;
614614 }
615+
616+ #[ test]
617+ fn test_human_readable_booted_usroverlay ( ) {
618+ let w =
619+ human_status_from_spec_fixture ( include_str ! ( "fixtures/spec-booted-usroverlay.yaml" ) )
620+ . unwrap ( ) ;
621+ let expected = indoc:: indoc! { r"
622+ ● Booted image: quay.io/example/someimage:latest
623+ Digest: sha256:736b359467c9437c1ac915acaae952aad854e07eb4a16a94999a48af08c83c34 (arm64)
624+ Version: nightly (2023-09-30T19:22:16Z)
625+ /usr overlay: read-write
626+ " } ;
627+ similar_asserts:: assert_eq!( w, expected) ;
628+ }
615629}
0 commit comments