config.sh: Create /etc/X11/xorg.conf.d

Since we dropped the Xorg stack from the images, systemd-localed
chokes when trying to set configs because it tries to create
/etc/X11/xorg.conf.d if it doesn't exist so it can write a drop-in
configuration file for setting xkb configuration, and the SELinux policy
does not currently permit it.

Until this is addressed somehow, pre-create the directory so localectl
calls do not fail on this.

Reference: https://bugzilla.redhat.com/2240159
This commit is contained in:
Neal Gompa 2023-09-22 03:37:35 -04:00
parent 53faef2130
commit 33c0bf12da

View File

@ -23,6 +23,8 @@ echo "allow_vendor_change=False" >> /etc/dnf/dnf.conf
#-------------------------------------- #--------------------------------------
## Fixes KDE Plasma, see rhbz#2058657 ## Fixes KDE Plasma, see rhbz#2058657
setsebool -P selinuxuser_execmod 1 setsebool -P selinuxuser_execmod 1
## Create /etc/X11/xorg.conf.d, see rhbz#2240159
mkdir -p /etc/X11/xorg.conf.d
#====================================== #======================================
# Clear machine specific configuration # Clear machine specific configuration