build: allow to run prebuild outside of this project.

This commit is contained in:
Alexandre Pujol 2024-10-09 14:03:54 +01:00
parent e17b682e51
commit 68127c3859
Failed to generate hash of commit
3 changed files with 4 additions and 4 deletions

View file

@ -31,7 +31,7 @@ func init() {
// Build tasks applied by default
builder.Register(
"userspace", // Resolve variable in the userspace profile
"userspace", // Resolve variable in profile attachments
"hotfix", // Temporary fix for #74, #80 & #235
)

View file

@ -27,7 +27,7 @@ func init() {
RegisterBuilder(&Userspace{
Base: prebuild.Base{
Keyword: "userspace",
Msg: "Bypass userspace tools restriction",
Msg: "Resolve variable in profile attachments",
},
})
}

View file

@ -73,10 +73,10 @@ func Prebuild() {
return
}
if full {
if full && paths.New("apparmor.d/groups/_full").Exist() {
prepare.Register("fsp")
builder.Register("fsp")
} else {
} else if prebuild.SystemdDir.Exist() {
prepare.Register("systemd-early")
}