File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ anyhow = { workspace = true }
19
19
bootc-utils = { path = " ../utils" }
20
20
bootc-blockdev = { path = " ../blockdev" }
21
21
camino = { workspace = true , features = [" serde1" ] }
22
- ostree-ext = { path = " ../ostree-ext" }
22
+ ostree-ext = { path = " ../ostree-ext" , features = [ " bootc " ] }
23
23
chrono = { workspace = true , features = [" serde" ] }
24
24
clap = { workspace = true , features = [" derive" ," cargo" ] }
25
25
clap_mangen = { workspace = true , optional = true }
Original file line number Diff line number Diff line change @@ -70,6 +70,8 @@ features = ["dox"]
70
70
docgen = [" clap_mangen" ]
71
71
dox = [" ostree/dox" ]
72
72
internal-testing-api = [" xshell" , " indoc" , " similar-asserts" ]
73
+ # Enable calling back into bootc
74
+ bootc = []
73
75
74
76
[lints ]
75
77
workspace = true
Original file line number Diff line number Diff line change @@ -143,6 +143,9 @@ pub async fn deploy(
143
143
// crates. We need an option to skip though so when the *main*
144
144
// bootc install code calls this API, we don't do this as it
145
145
// will have already been handled.
146
+ // Note also we do this under a feature gate to ensure rpm-ostree
147
+ // doesn't try to invoke this, as that won't work right now.
148
+ #[ cfg( feature = "bootc" ) ]
146
149
if !options. skip_completion {
147
150
// Note that the sysroot is provided as `.` but we use cwd_dir to
148
151
// make the process current working directory the sysroot.
You can’t perform that action at this time.
0 commit comments