build: add initial build support for ubuntu 24.04

This commit is contained in:
Alexandre Pujol 2024-02-28 17:35:14 +00:00
parent 431e93c9df
commit ae9f7e7442
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
4 changed files with 106 additions and 19 deletions

View file

@ -14,6 +14,7 @@ import (
)
var (
needDisplace bool = false
Distribution string
DistDir *paths.Path
Root *paths.Path
@ -27,6 +28,13 @@ func init() {
FlagDir = DistDir.Join("flags")
RootApparmord = Root.Join("apparmor.d")
Distribution = getSupportedDistribution()
if Distribution == "ubuntu" {
os := NewOSRelease()
if os["VERSION_CODENAME"] == "noble" {
Builds = append(Builds, BuildABI3)
needDisplace = true
}
}
}
func getFctName(i any) string {