Skip to content

Commit 7f9607d

Browse files
committed
Remove crosvm and vsock sockets before startup
Ref #3
1 parent b94678c commit 7f9607d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

bubbles-app/src/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,8 @@ impl AsyncFactoryComponent for VmEntry {
338338
let image_disk_path = image_base_path.join("disk.img");
339339
let image_linuz_path = image_base_path.join("vmlinuz");
340340
let image_initrd_path = image_base_path.join("initrd.img");
341+
let _ = tokio::fs::remove_file(&crosvm_socket_path).await;
342+
let _ = tokio::fs::remove_file(&vsock_socket_path).await;
341343
let socat_process = gtk::gio::Subprocess::newv(
342344
&[
343345
OsStr::new(Path::new(&env::var("HOME").expect("HOME var to be set")).join("bubbles/socat").as_os_str()),

0 commit comments

Comments
 (0)