[MDEV-15543] systemd-tmpfiles.d should not be used to create the default datadir Created: 2018-03-12 Updated: 2023-11-28 Resolved: 2023-11-28 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Packaging |
| Affects Version/s: | 10.1, 10.2, 10.3 |
| Fix Version/s: | 11.4.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | Fabien Hochstrasser | Assignee: | Daniel Black |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | systemd | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
The package MariaDB-server installs the file /usr/lib/tmpfiles.d/tmpfiles.conf with the following content:
The man page of systemd-tmpfiles.d says the following:
/var/lib/mysql is not a temporary nor volatile directory. It should not be created using systemd-tmpfiles.d. It's also a problem if a different datadir is being used (/var/lib/mysql is created at system startup without content). |
| Comments |
| Comment by Elena Stepanova [ 2018-05-30 ] | |||||||||||||||
|
it was introduced in 10.1 by this commit:
Thus assigning to cvicentiu to clarify. | |||||||||||||||
| Comment by Christian Hesse [ 2019-02-13 ] | |||||||||||||||
|
I had to think twice what happens here... So this issue is invalid as /run/mysqld/ is in fact a volatile directory. In
Everything is fine as long as we do not use capital "D" (or give an age). | |||||||||||||||
| Comment by Christian Hesse [ 2019-02-13 ] | |||||||||||||||
|
BTW, if you read about direcroties in man tmpfiles.d it ends with:
So this is not generally wrong. | |||||||||||||||
| Comment by Fabien Hochstrasser [ 2019-02-14 ] | |||||||||||||||
|
I'm not building it myself, I use the RPM hosted on the official MariaDB repositories. I agree it isn't a problem to have this empty directory, but it would be even cleaner to not have it. If you think it isn't worth fixing, no problem. You know better than me | |||||||||||||||
| Comment by Daniel Black [ 2023-11-14 ] | |||||||||||||||
|
updated | |||||||||||||||
| Comment by Vicențiu Ciorbaru [ 2023-11-28 ] | |||||||||||||||
|
Ok to push, with typo changed. |