Browse Source
On the first boot of Fedora CoreOS, rpm-ostree applies qemu-guest-agent live and runs "systemd-tmpfiles --create --prefix=/var" after the containers have started. The "d" line reset the SELinux label of the directory Podman had relabeled, and every REGISTER then failed with "ast_db_put: SQL logic error". The package now creates the directory and its spool and log sub-directories, once. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UJKweojs6NK5svZwRgQjQHmain
2 changed files with 18 additions and 6 deletions
@ -1,11 +1,15 @@ |
|||||
# Internal database, spool and logs of Asterisk. Not precious: no voicemail, |
|
||||
# no recordings. |
|
||||
d /var/lib/quadlets/asterisk 0750 10036 10000 - |
|
||||
d /var/lib/quadlets/asterisk/spool 0750 10036 10000 - |
|
||||
d /var/lib/quadlets/asterisk/log 0750 10036 10000 - |
|
||||
|
|
||||
# Provisioning files of the phones, served over TFTP. Operator-provided, on the |
# Provisioning files of the phones, served over TFTP. Operator-provided, on the |
||||
# precious-data mount so that the host can write them. The "$" marks it for |
# precious-data mount so that the host can write them. The "$" marks it for |
||||
# removal on `systemd-tmpfiles --purge` (i.e. `make uninstall`). |
# removal on `systemd-tmpfiles --purge` (i.e. `make uninstall`). |
||||
|
# |
||||
|
# /var/lib/quadlets/asterisk is NOT declared here, and must not be. The package |
||||
|
# creates it, once. A "d" line adjusts the directory again at every run of |
||||
|
# systemd-tmpfiles, and resets its SELinux label to var_lib_t on the way. Such a |
||||
|
# run happens AFTER the containers start on the first boot of a Fedora CoreOS |
||||
|
# machine: rpm-ostree applies the qemu-guest-agent package live, then runs |
||||
|
# "systemd-tmpfiles --create --prefix=/var". Asterisk then loses access to the |
||||
|
# directory Podman had just relabeled, and every REGISTER fails with |
||||
|
# "ast_db_put: SQL logic error". Measured on 2026-10-25. The virtiofs mount is |
||||
|
# not affected: its label is fixed by the mount. |
||||
d$ /var/lib/virtiofs/data/asterisk 0750 10036 10000 - |
d$ /var/lib/virtiofs/data/asterisk 0750 10036 10000 - |
||||
d$ /var/lib/virtiofs/data/asterisk/tftp 0750 10036 10000 - |
d$ /var/lib/virtiofs/data/asterisk/tftp 0750 10036 10000 - |
||||
|
|||||
Loading…
Reference in new issue