File tree Expand file tree Collapse file tree 4 files changed +16
-1
lines changed Expand file tree Collapse file tree 4 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ rust-version = "1.64.0"
11
11
include = [" /src" , " LICENSE-APACHE" , " LICENSE-MIT" ]
12
12
13
13
[dependencies ]
14
+ anstream = " 0.6.4"
15
+ anstyle = " 1.0.4"
14
16
anyhow = " 1.0"
15
17
camino = { version = " 1.0.4" , features = [" serde1" ] }
16
18
ostree-ext = " 0.12"
Original file line number Diff line number Diff line change @@ -790,6 +790,10 @@ async fn prepare_install(
790
790
crate :: cli:: require_root ( ) ?;
791
791
require_systemd_pid1 ( ) ?;
792
792
793
+ if cfg ! ( target_arch = "s390x" ) {
794
+ anyhow:: bail!( "Installation is not supported on this architecture yet" ) ;
795
+ }
796
+
793
797
let rootfs = cap_std:: fs:: Dir :: open_ambient_dir ( "/" , cap_std:: ambient_authority ( ) )
794
798
. context ( "Opening /" ) ?;
795
799
Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ pub(crate) async fn status(opts: super::cli::StatusOpts) -> Result<()> {
262
262
host
263
263
} ;
264
264
265
- eprintln ! ( "note: The format of this API is not yet stable" ) ;
265
+ crate :: utils :: warning ( "note: The format of this API is not yet stable" ) ;
266
266
267
267
// If we're in JSON mode, then convert the ostree data into Rust-native
268
268
// structures that can be serialized.
Original file line number Diff line number Diff line change @@ -60,6 +60,15 @@ pub(crate) fn spawn_editor(tmpf: &tempfile::NamedTempFile) -> Result<()> {
60
60
Ok ( ( ) )
61
61
}
62
62
63
+ /// Output a warning message
64
+ pub ( crate ) fn warning ( s : & str ) {
65
+ anstream:: eprintln!(
66
+ "{}{s}{}" ,
67
+ anstyle:: AnsiColor :: Red . render_fg( ) ,
68
+ anstyle:: Reset . render( )
69
+ ) ;
70
+ }
71
+
63
72
/// Given a possibly tagged image like quay.io/foo/bar:latest and a digest 0ab32..., return
64
73
/// the digested form quay.io/foo/bar:latest@sha256:0ab32...
65
74
/// If the image already has a digest, it will be replaced.
You can’t perform that action at this time.
0 commit comments