Skip to content

Commit

Permalink
main: Fix image targets for LXD
Browse files Browse the repository at this point in the history
This fixes an issue where the image target would ignore
`ImageTargetAll` when building LXD images.

Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
  • Loading branch information
monstermunchkin committed Apr 4, 2022
1 parent 5b7a16f commit 2e3b09d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions distrobuilder/main_lxd.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@ func (c *cmdLXD) runPack(cmd *cobra.Command, args []string, overlayDir string) e
imageTargets := shared.ImageTargetAll

if c.flagVM {
imageTargets = shared.ImageTargetVM
imageTargets |= shared.ImageTargetVM
} else {
imageTargets = shared.ImageTargetContainer
imageTargets |= shared.ImageTargetContainer
}

manager, err := managers.Load(c.global.ctx, c.global.definition.Packages.Manager, c.global.logger, *c.global.definition)
Expand Down

0 comments on commit 2e3b09d

Please sign in to comment.