Net tap cleanup & proper error exit handling

This commit is contained in:
AlexSSD7 2023-08-31 20:10:26 +01:00
commit 3a56fb9db8
3 changed files with 51 additions and 42 deletions

View file

@ -11,7 +11,7 @@ var buildCmd = &cobra.Command{
Use: "build",
Short: "Build (set up) a VM image for local use. This needs to be run after the initial installation.",
Run: func(cmd *cobra.Command, args []string) {
store := createStore()
store := createStoreOrExit()
err := store.BuildVMImageWithInterruptHandler(vmDebugFlag, buildOverwriteFlag)
if err != nil {