build(debian): use hide instead of displace to overwrite upstream profiles.

This commit is contained in:
Alexandre Pujol 2024-03-10 14:43:43 +00:00
parent b342df689a
commit f5aacbd029
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
6 changed files with 30 additions and 37 deletions

View file

@ -131,19 +131,17 @@ func Configure() ([]string, error) {
case "arch", "opensuse":
case "ubuntu":
debianDisplaceClean()
if needDisplace {
filesToDisplace := overwriteProfile(DistDir.Join("displace"))
if err := displaceFiles(filesToDisplace); err != nil {
return res, err
}
debianOverwriteClean()
if overwrite {
profiles := getOverwriteProfiles()
debianOverwrite(profiles)
} else {
if err := copyTo(DistDir.Join("ubuntu"), RootApparmord); err != nil {
return res, err
}
}
case "debian", "whonix":
debianDisplaceClean()
debianOverwriteClean()
// Copy Debian specific abstractions
if err := copyTo(DistDir.Join("ubuntu"), RootApparmord); err != nil {