stages/org.osbuild.keymap: create xorg.conf.d if it doesn't exist
Newer versions of Fedora don't create this directory by default. This commit modifies the stage so it creates it if it doesn't exist.
This commit is contained in:
parent
367981d6e4
commit
dcb0850a2e
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,6 @@ be configured for the X11 keyboard.
|
|||
Valid keymaps are generally found in /lib/kbd/keymaps.
|
||||
"""
|
||||
|
||||
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
|
|
@ -74,6 +73,7 @@ Section "InputClass"
|
|||
EndSection
|
||||
"""
|
||||
|
||||
os.makedirs(f"{tree}/etc/X11/xorg.conf.d", mode=0o755, exist_ok=True)
|
||||
with open(f"{tree}/etc/X11/xorg.conf.d/00-keyboard.conf", "w", encoding="utf8") as f:
|
||||
f.write(file_content)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue