Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
-
10.6.18
-
None
Description
Most of the POSTIN script uses the datadir setting from the MariaDB configuration files, so this can be set to a different path before installing the MariaDB-server RPM.
At the end of the POSTIN script we have the /var/lib/mysql data directory path hardcoded though:
if [ -x /sbin/restorecon ] ; then
|
/sbin/restorecon -R /var/lib/mysql
|
fi
|
so with a changed datadir setting these log messages are issued:
/sbin/restorecon: lstat(/var/lib/mysql) failed: No such file or directory
|
warning: %post(MariaDB-server-10.6.18-1.el8.x86_64) scriptlet failed, exit status 255
|
|
Error in POSTIN scriptlet in rpm package MariaDB-server
|
Not critical as the MariaDB-server package gets fully installed nonetheless, but it raises questions.
No harm done by not actually running restorecon on the non-standard datadir either, as our SElinux policies would only have context for the default datadir anyway.
Maybe we should just add a simple
if test -d /var/lib/mysql
|
condition to that last code block
Attachments
Activity
Field | Original Value | New Value |
---|---|---|
Fix Version/s | 10.4 [ 22408 ] | |
Fix Version/s | 10.5 [ 23123 ] | |
Fix Version/s | 10.6 [ 24028 ] |
Fix Version/s | 10.4 [ 22408 ] |
Assignee | Sergei Golubchik [ serg ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Status | In Progress [ 3 ] | In Testing [ 10301 ] |
Zendesk Related Tickets | 202163 |
Component/s | Platform RedHat [ 11302 ] | |
Fix Version/s | 10.5.26 [ 29832 ] | |
Fix Version/s | 10.6.19 [ 29833 ] | |
Fix Version/s | 10.11.9 [ 29834 ] | |
Fix Version/s | 11.1.6 [ 29835 ] | |
Fix Version/s | 11.2.5 [ 29836 ] | |
Fix Version/s | 11.4.3 [ 29837 ] | |
Fix Version/s | 10.5 [ 23123 ] | |
Fix Version/s | 10.6 [ 24028 ] | |
Resolution | Fixed [ 1 ] | |
Status | In Testing [ 10301 ] | Closed [ 6 ] |