Skip to content

Commit

Permalink
Merge pull request #869 from stgraber/main
Browse files Browse the repository at this point in the history
debootstrap: Add workaround for devuan
  • Loading branch information
monstermunchkin authored Jun 28, 2024
2 parents 4d9286a + bea1106 commit 63aa325
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sources/debootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"os"
"path"
"path/filepath"
"slices"
"strings"

incus "github.com/lxc/incus/v6/shared/util"
Expand Down Expand Up @@ -34,6 +35,11 @@ func (s *debootstrap) Run() error {
args = append(args, "--no-check-gpg")
}

if s.definition.Image.Distribution == "devuan" && slices.Contains([]string{"beowulf", "chimaera"}, s.definition.Image.Release) {
// Workaround for debootstrap attempting to fetch non-existent usr-is-merged.
args = append(args, "--exclude=usr-is-merged")
}

earlyPackagesInstall := s.definition.GetEarlyPackages("install")
earlyPackagesRemove := s.definition.GetEarlyPackages("remove")

Expand Down

0 comments on commit 63aa325

Please sign in to comment.