@@ -421,7 +421,7 @@ fn human_render_imagestatus(
421
421
// Only show the usr filesystem overlay state if we are booted and not the default
422
422
// read-only mode.
423
423
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) ?;
425
425
writeln ! ( out, "{}" , usr_overlay. to_human_string( ) ) ?;
426
426
}
427
427
}
@@ -450,7 +450,7 @@ fn human_render_ostree(
450
450
// Only show the usr filesystem overlay state if we are booted and not the default
451
451
// read-only mode.
452
452
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) ?;
454
454
writeln ! ( out, "{}" , usr_overlay. to_human_string( ) ) ?;
455
455
}
456
456
}
@@ -612,4 +612,18 @@ mod tests {
612
612
Some ( ImageSignature :: OstreeRemote ( "fedora" . into( ) ) )
613
613
) ;
614
614
}
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
+ }
615
629
}
0 commit comments