Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: apparmor-s6 is launching a "command not found" (Read 583 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

apparmor-s6 is launching a "command not found"

Hello everybody. I installed "apparmor" and "apparmor-s6" in my environment but I guess there is a problem with the services. I guess the problem is that it launch a command that it doesn't exist.

Code: [Select]
s6-rc -v 6 -u change apparmor                                                                                                                           
s6-rc: info: bringing selected services up
s6-rc: info: service s6rc-fdholder: already up
s6-rc: info: service udevd-log: already up
s6-rc: info: service s6rc-oneshot-runner: already up
s6-rc: info: service mount-tmpfs: already up
s6-rc: info: service mount-procfs: already up
s6-rc: info: service mount-devfs: already up
s6-rc: info: service mount-cgroups: already up
s6-rc: info: service kmod-static-nodes: already up
s6-rc: info: service tmpfiles-dev: already up
s6-rc: info: service udevd-srv: already up
s6-rc: info: service udevadm: already up
s6-rc: info: service modules: already up
s6-rc: info: service mount-filesystems: already up
s6-rc: info: service remount-root: already up
s6-rc: info: service apparmor: starting
s6-ipcclient: connected to /run/s6-rc/servicedirs/s6rc-oneshot-runner/s
exec: fatal: unable to exec /usr/lib/apparmor/apparmor.systemd: No such file or directory
s6-rc: warning: unable to start service apparmor: command exited 127

Reading the up file, I found this:

Code: [Select]
#!/bin/execlineb -P
exec /usr/lib/apparmor/apparmor.systemd reload

If you look for /usr/lib/apparmor/ there isn't apparmor.systemd script.

Code: [Select]
ls -lah /usr/lib/apparmor/  
total 144K
drwxr-xr-x   2 root root 4.0K Dec 13 17:34 .
drwxr-xr-x 122 root root 124K Dec 14 05:14 ..
-rwxr-xr-x   1 root root  12K Dec  3 21:09 rc.apparmor.functions

I guess the issue is present on other inits too, I read the runit one and I has the same issue.
Artix Linux Colombia

Re: apparmor-s6 is launching a "command not found"

Reply #1
I changed the apparmor PKGBUILD to remove some systemd stuff but apparently it also removed this file which is needed for the inits. I double checked and despite the name, it's just a bash script. I just pushed a fixed version of apparmor to the repos.

Re: apparmor-s6 is launching a "command not found"

Reply #2
It's not just any bash script, it's a sysv-style init script.

I don't even have the words to describe the irony that a sysvinit script being repackaged as something for systemd represents.

Re: apparmor-s6 is launching a "command not found"

Reply #3
I checked the script and it's working now. Thank you very much.
Artix Linux Colombia