Skip to content

Commit

Permalink
Merge pull request #868 from stgraber/main
Browse files Browse the repository at this point in the history
debootstrap: Remove no-merged-usr/merged-usr logic
  • Loading branch information
monstermunchkin authored Jun 27, 2024
2 parents e27f903 + ab6c95f commit 4d9286a
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions sources/debootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"os"
"path"
"path/filepath"
"slices"
"strings"

incus "github.com/lxc/incus/v6/shared/util"
Expand All @@ -21,16 +20,6 @@ type debootstrap struct {
func (s *debootstrap) Run() error {
var args []string

distro := strings.ToLower(s.definition.Image.Distribution)
release := strings.ToLower(s.definition.Image.Release)

// Enable merged /usr by default, and disable it for certain distros/releases
if distro == "ubuntu" && slices.Contains([]string{"xenial", "bionic", "noble"}, release) || distro == "debian" && slices.Contains([]string{"sid"}, release) || distro == "mint" && slices.Contains([]string{"tara", "tessa", "tina", "tricia", "ulyana"}, release) || distro == "devuan" {
args = append(args, "--no-merged-usr")
} else {
args = append(args, "--merged-usr")
}

os.RemoveAll(s.rootfsDir)

if s.definition.Source.Variant != "" {
Expand Down

0 comments on commit 4d9286a

Please sign in to comment.