File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -1018,8 +1018,9 @@ pub(crate) async fn install_to_disk(mut opts: InstallToDiskOpts) -> Result<()> {
1018
1018
. with_context ( || format ! ( "Querying {}" , & block_opts. device) ) ?;
1019
1019
if opts. via_loopback {
1020
1020
if !opts. config_opts . generic_image {
1021
- eprintln ! ( "Automatically enabling --generic-image when installing via loopback" ) ;
1022
- std:: thread:: sleep ( std:: time:: Duration :: from_secs ( 2 ) ) ;
1021
+ crate :: utils:: medium_visibility_warning (
1022
+ "Automatically enabling --generic-image when installing via loopback" ,
1023
+ ) ;
1023
1024
opts. config_opts . generic_image = true ;
1024
1025
}
1025
1026
if !target_blockdev_meta. file_type ( ) . is_file ( ) {
Original file line number Diff line number Diff line change @@ -299,8 +299,6 @@ pub(crate) async fn status(opts: super::cli::StatusOpts) -> Result<()> {
299
299
host
300
300
} ;
301
301
302
- crate :: utils:: warning ( "note: The format of this API is not yet stable" ) ;
303
-
304
302
// If we're in JSON mode, then convert the ostree data into Rust-native
305
303
// structures that can be serialized.
306
304
// Filter to just the serializable status structures.
Original file line number Diff line number Diff line change @@ -67,13 +67,16 @@ pub(crate) fn sigpolicy_from_opts(
67
67
}
68
68
}
69
69
70
- /// Output a warning message
71
- pub ( crate ) fn warning ( s : & str ) {
70
+ /// Output a warning message that we want to be quite visible.
71
+ /// The process (thread) execution will be delayed for a short time.
72
+ pub ( crate ) fn medium_visibility_warning ( s : & str ) {
72
73
anstream:: eprintln!(
73
74
"{}{s}{}" ,
74
75
anstyle:: AnsiColor :: Red . render_fg( ) ,
75
76
anstyle:: Reset . render( )
76
77
) ;
78
+ // When warning, add a sleep to ensure it's seen
79
+ std:: thread:: sleep ( std:: time:: Duration :: from_secs ( 1 ) ) ;
77
80
}
78
81
79
82
/// Given a possibly tagged image like quay.io/foo/bar:latest and a digest 0ab32..., return
You can’t perform that action at this time.
0 commit comments