added --init to distrobox creation
this will allow us to do things like docker inside of distroboxes
This commit is contained in:
@@ -93,7 +93,7 @@ pub fn make_box(project: &Project, tools_dir: &PathBuf, boxtemplate: &String, ne
|
|||||||
box_name_file.write_all(&box_name.as_bytes()).expect("error writing boxname to box file");
|
box_name_file.write_all(&box_name.as_bytes()).expect("error writing boxname to box file");
|
||||||
let pentest_volume = format!("{}:/pentest:rw", &project.files_folder.display());
|
let pentest_volume = format!("{}:/pentest:rw", &project.files_folder.display());
|
||||||
let toold_volume = format!("{}:/tools:rw", tools_dir.display());
|
let toold_volume = format!("{}:/tools:rw", tools_dir.display());
|
||||||
println!("distrobox create --root --clone {} --volume {} --volume {} --name {}", boxtemplate, toold_volume, pentest_volume, box_name);
|
println!("distrobox create --root --init --clone {} --volume {} --volume {} --name {}", boxtemplate, toold_volume, pentest_volume, box_name);
|
||||||
let distrobox_result = process::Command::new("distrobox")
|
let distrobox_result = process::Command::new("distrobox")
|
||||||
.arg("create")
|
.arg("create")
|
||||||
.arg("--root")
|
.arg("--root")
|
||||||
|
|||||||
Reference in New Issue
Block a user