Skip to content

Commit 543b7a4

Browse files
committed
imp: remove unnecessary file creation.
1 parent 4f733ab commit 543b7a4

1 file changed

Lines changed: 0 additions & 19 deletions

File tree

vmm/src/one_shot.rs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -268,25 +268,6 @@ Compose file content (first 200 chars):
268268
fs_err::write(&sys_config_path, serde_json::to_string(&sys_config)?)
269269
.context("Failed to write sys config")?;
270270

271-
// Pre-create all files that QEMU and the system expect to exist
272-
// Note: Some files QEMU will create/overwrite, but the directory must exist
273-
// and QEMU needs to be able to create them
274-
275-
// Create empty serial log file (QEMU will append to it)
276-
let serial_log = vm_work_dir.serial_file();
277-
fs_err::write(&serial_log, "").context("Failed to create serial log file")?;
278-
279-
// Create empty pty path placeholder (QEMU will replace this with actual pty path)
280-
let serial_pty = vm_work_dir.serial_pty();
281-
fs_err::write(&serial_pty, "").context("Failed to create serial pty file")?;
282-
283-
// Create empty stdout and stderr log files
284-
let stdout_log = vm_work_dir.stdout_file();
285-
fs_err::write(&stdout_log, "").context("Failed to create stdout log file")?;
286-
287-
let stderr_log = vm_work_dir.stderr_file();
288-
fs_err::write(&stderr_log, "").context("Failed to create stderr log file")?;
289-
290271
// Create vm-state.json with initial state
291272
vm_work_dir
292273
.set_started(false)

0 commit comments

Comments
 (0)