build: root -> share.

This commit is contained in:
Alexandre Pujol 2024-10-11 22:31:06 +01:00
parent 116272b8ad
commit ebdeef152c
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
7 changed files with 6 additions and 5 deletions

View file

@ -27,14 +27,14 @@ func init() {
func (p Synchronise) Apply() ([]string, error) {
res := []string{}
dirs := paths.PathList{prebuild.RootApparmord, prebuild.Root.Join("root"), prebuild.Root.Join("systemd")}
dirs := paths.PathList{prebuild.RootApparmord, prebuild.Root.Join("share"), prebuild.Root.Join("systemd")}
for _, dir := range dirs {
if err := dir.RemoveAll(); err != nil {
return res, err
}
}
if p.Path == "" {
for _, name := range []string{"apparmor.d", "root"} {
for _, name := range []string{"apparmor.d", "share"} {
if err := util.CopyTo(paths.New(name), prebuild.Root.Join(name)); err != nil {
return res, err
}