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
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
3 changed files with 4 additions and 4 deletions

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")
}