Go to file
Nikola Davidova bdf88f920b Extend tmpfiles.d rules for ImageMode
After switching to a container image with bootc switch, systemd failed to start
mysqld because required runtime directories were missing or had wrong permissions.

Adding tmpfiles entries with correct ownership ensures systemd creates the
necessary directories at boot and gives them correct permissions, allowing the
mysql daemon to start.

"In a container build, you can write to '/var'. However, this will have a semantic
similar to a Dockerfile VOLUME instruction; the content from the container image
is only copied at initial install time. Any subsequent system updates will not
by default see new changes.

It's recommended instead to use e.g. systemd tmpfiles.d as a way to ensure that
newly added state "reconciles" across upgrades as desired."

https://docs.fedoraproject.org/en-US/bootc/filesystem/#_filesystem_bind_mount_var

This covers all the files in /var sicne we only ship these as can be seen here:
find | grep /var/
./mysql8.4-server-8.4.5-1.fc43.x86_64.rpm/var/lib
./mysql8.4-server-8.4.5-1.fc43.x86_64.rpm/var/lib/mysql
./mysql8.4-server-8.4.5-1.fc43.x86_64.rpm/var/lib/mysql-files
./mysql8.4-server-8.4.5-1.fc43.x86_64.rpm/var/lib/mysql-keyring
./mysql8.4-server-8.4.5-1.fc43.x86_64.rpm/var/log
./mysql8.4-server-8.4.5-1.fc43.x86_64.rpm/var/log/mysql

The '/usr' directory is not persistent therefore this change does not affect it
and the '/etc' directory is merged in a different way and also not under the
'mysql:mysql' user
2026-02-24 13:19:48 +01:00
.fmf Setup gating for c10s 2024-07-31 13:23:59 +02:00
.gitignore Update to MySQL 5.7.14 - sources 2024-02-05 16:59:12 +01:00
boost-1.57.0-mpl-print.patch Rebase to 8.4.0 2024-07-16 10:09:52 +02:00
boost-1.58.0-pool.patch Update to 5.7.10 2024-02-05 16:59:12 +01:00
ci.fmf updated gating 2025-09-16 22:39:51 +02:00
gating.yaml updated plans to handle multiple plans 2025-09-17 08:33:22 +02:00
my.cnf.in Update cnf and service files with MySQL 8.0 features and clean up patches. 2024-02-05 16:59:12 +01:00
mysql8.4.rpmlintrc Fixes for issues found by linters 2025-01-09 17:57:32 +01:00
mysql8.4.spec Extend tmpfiles.d rules for ImageMode 2026-02-24 13:19:48 +01:00
mysql_config_multilib.sh Spec rewrite to be more similar to oterh MySQL implementations 2024-02-05 16:59:12 +01:00
mysql-check-socket.sh Spec rewrite to be more similar to oterh MySQL implementations 2024-02-05 16:59:12 +01:00
mysql-file-contents.patch Rename all patch files and specfile 2024-02-06 09:52:41 +00:00
mysql-flush-logrotate.patch Fix patching of logrotate 2025-02-14 13:41:17 +01:00
mysql-install-test.patch Rename all patch files and specfile 2024-02-06 09:52:41 +00:00
mysql-paths.patch Rebase to 8.4.6 2025-09-02 14:27:10 +02:00
mysql-prepare-db-dir.sh Fix scripts after moving mysqld back to /usr/libexec 2024-02-05 16:59:12 +01:00
mysql-rpath.patch Rename all patch files and specfile 2024-02-06 09:52:41 +00:00
mysql-scripts-common.sh Support --defaults-group-suffix option in systemd unit file 2024-02-05 16:59:12 +01:00
mysql-scripts.patch Rename all patch files and specfile 2024-02-06 09:52:41 +00:00
mysql-sharedir.patch Rename all patch files and specfile 2024-02-06 09:52:41 +00:00
mysql-wait-stop.sh Wait for daemon ends 2024-02-05 16:59:12 +01:00
mysql.service.in Remove SysVInit stuff 2024-02-05 16:59:13 +01:00
mysql.tmpfiles.d.in Extend tmpfiles.d rules for ImageMode 2026-02-24 13:19:48 +01:00
mysql@.service.in Remove SysVInit stuff 2024-02-05 16:59:13 +01:00
plans.fmf updated plans to handle multiple plans 2025-09-17 08:33:22 +02:00
README.mysql-docs Update to mysql 5.1.44; remove non-free documentation file. 2024-02-05 16:59:12 +01:00
README.mysql-license Update the license clarification text to reflect the current state 2025-09-02 13:49:22 +02:00
rh-skipped-tests-list-arm.list Testsuite verification for release 8.4.4 2025-01-23 03:13:19 +01:00
rh-skipped-tests-list-base.list Skip tests that are failing on Konflux 2025-12-09 14:12:43 +01:00
rh-skipped-tests-list-ppc.list Enable the base test suite ('main') 2025-01-09 17:57:46 +01:00
rh-skipped-tests-list-s390.list Testsuite verification for release 8.4.4 2025-01-23 03:13:19 +01:00
rpminspect.yaml rpminspect - introduce a global ignore list 2024-02-05 16:59:56 +01:00
server.cnf.in Fix the logrotate file [2] 2024-02-05 16:59:56 +01:00
sources Rebase to 8.4.8 2026-02-12 16:07:53 +01:00

MySQL is distributed under GPL v2, but there are some licensing exceptions
that allow the client libraries to be linked with a non-GPL application,
so long as the application is under a license approved by Oracle.
For details see

'The Universal FOSS Exception, Version 1.0':
  https://oss.oracle.com/licenses/universal-foss-exception/
A predecessor of that license exception is now deprecated 'FOSS License Exception':
  http://www.mysql.com/about/legal/licensing/foss-exception/

Some innobase code from Percona and Google is under BSD license.
Some code related to test-suite is under LGPLv2.