Skip to content

Commit

Permalink
first_boot: Add context for genisoimage
Browse files Browse the repository at this point in the history
I got a bare
```
Error: crun-vm: failed to load cloud-init config: No such file or directory (os error 2): OCI runtime attempted to invoke a command that was not found
```

Because my host was missing `genisoimage`.  This turns that into
```
Error: crun-vm: failed to load cloud-init config: Invoking genisoimage: No such file or directory (os error 2): OCI runtime attempted to invoke a command that was not found
```

which is a bit more useful.

Signed-off-by: Colin Walters <[email protected]>
  • Loading branch information
cgwalters committed Jan 25, 2024
1 parent c29ec55 commit e0b1e23
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/commands/create/first_boot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,9 @@ impl FirstBootConfig<'_> {
.arg(out_config_dir_path.as_ref().join("meta-data"))
.arg(out_config_dir_path.as_ref().join("user-data"))
.arg(out_config_dir_path.as_ref().join("vendor-data"))
.spawn()?
.wait()?;
.spawn()
.and_then(|mut child| child.wait())
.context("Invoking genisoimage")?;

ensure!(status.success(), "genisoimage failed");

Expand Down

0 comments on commit e0b1e23

Please sign in to comment.