File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,12 @@ pub struct App {
27
27
#[ clap( long, group = "repopath" ) ]
28
28
system : bool ,
29
29
30
+ /// Sets the repository to insecure before running any operation and
31
+ /// prepend '?' to the composefs kernel command line when writing
32
+ /// boot entry.
33
+ #[ clap( long) ]
34
+ insecure : bool ,
35
+
30
36
#[ clap( subcommand) ]
31
37
cmd : Command ,
32
38
}
@@ -160,7 +166,7 @@ async fn main() -> Result<()> {
160
166
161
167
let args = App :: parse ( ) ;
162
168
163
- let repo: Repository < Sha256HashValue > = ( if let Some ( path) = & args. repo {
169
+ let mut repo: Repository < Sha256HashValue > = ( if let Some ( path) = & args. repo {
164
170
Repository :: open_path ( CWD , path)
165
171
} else if args. system {
166
172
Repository :: open_system ( )
@@ -172,6 +178,8 @@ async fn main() -> Result<()> {
172
178
Repository :: open_user ( )
173
179
} ) ?;
174
180
181
+ repo. set_insecure ( args. insecure ) ;
182
+
175
183
match args. cmd {
176
184
Command :: Transaction => {
177
185
// just wait for ^C
You can’t perform that action at this time.
0 commit comments