Skip to content

Commit 7361953

Browse files
authored
Merge pull request #797 from monstermunchkin/issues/796-build-lxd
main: Fix VM builds when using `build-lxd` command
2 parents 71bd0c9 + e461155 commit 7361953

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

distrobuilder/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ func (c *cmdGlobal) preRunBuild(cmd *cobra.Command, args []string) error {
375375
case "build-lxc":
376376
// If we're running build-lxc, also process container-only sections.
377377
imageTargets |= shared.ImageTargetContainer
378-
case "build-incus":
378+
case "build-incus", "build-lxd":
379379
// Include either container-specific or vm-specific sections when
380380
// running build-incus.
381381
ok, err := cmd.Flags().GetBool("vm")

0 commit comments

Comments
 (0)