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 {
2727 #[ clap( long, group = "repopath" ) ]
2828 system : bool ,
2929
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+
3036 #[ clap( subcommand) ]
3137 cmd : Command ,
3238}
@@ -160,7 +166,7 @@ async fn main() -> Result<()> {
160166
161167 let args = App :: parse ( ) ;
162168
163- let repo: Repository < Sha256HashValue > = ( if let Some ( path) = & args. repo {
169+ let mut repo: Repository < Sha256HashValue > = ( if let Some ( path) = & args. repo {
164170 Repository :: open_path ( CWD , path)
165171 } else if args. system {
166172 Repository :: open_system ( )
@@ -172,6 +178,8 @@ async fn main() -> Result<()> {
172178 Repository :: open_user ( )
173179 } ) ?;
174180
181+ repo. set_insecure ( args. insecure ) ;
182+
175183 match args. cmd {
176184 Command :: Transaction => {
177185 // just wait for ^C
You can’t perform that action at this time.
0 commit comments