You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let distrobox_result = process::Command::new("distrobox")
102
-
.arg("create")
103
-
.arg("--root")
104
-
.arg("--init")
105
-
.arg("--unshare-all")
106
-
.arg("--clone")
107
-
.arg(boxtemplate)
108
-
.arg("--volume")
109
-
.arg(&toold_volume)
110
-
.arg("--volume")
111
-
.arg(&pentest_volume)
112
-
.arg("--name")
113
-
.arg(&box_name)
114
-
.status()
115
-
.expect("error getting distrobox status");
116
-
if distrobox_result.success(){
117
-
println!("we made a distrobox oh boy!");
118
-
let distrobox_start_result = process::Command::new("distrobox")
119
-
.arg("enter")
120
-
.arg("--root")
121
-
.arg(&box_name)
122
-
.arg("--")
123
-
.arg("sudo")
124
-
.arg("-s")
125
-
.arg("ln")
126
-
.arg("-sf")
127
-
.arg("/pentest/boxname")
128
-
.arg("/etc/boxname")
129
-
.status()
130
-
.expect("error getting response from distrobox start");
131
-
if distrobox_start_result.success(){
132
-
println!("distrobox was started as well!!!! good job me!");
100
+
letmut distrobox_cmd = String::new();
101
+
if fingerprint{
102
+
println!("creating box with shared volume for fingerprints... note you will still need to set up fingerprint authentication in your distrobox");
103
+
println!("\nfor example, you may need to install fprintd and imagemegick on your template box, and set up the pam files to utilize finger print auth");
104
+
println!("\nsee https://wiki.archlinux.org/title/Fprint for more information and instructions");
config_file.write_all(config_string.as_bytes()).expect("error writing to config file");
302
334
let default_projectline = format!("default:default:{}:{}:yes:{}:current",¬es_response.trim_end(),&files_response.trim_end(),&template_name.trim_end());
0 commit comments