coreos-issued.conf: create /run/issue.d with tmpfile

Use tmpfile rather than mkdir to create /run/issue.d, this way it will
be created with the correct SELinux labels
This commit is contained in:
Angel Cervera Roldan 2026-10-13 14:06:41 +00:00 committed by Angel Cervera Roldan
parent 567ab1d1d7
commit 1590d19721
2 changed files with 4 additions and 1 deletions

View file

@ -0,0 +1,4 @@
# Ensure /run/issue.d exists with correct SELinux label (systemd_ssh_issue_var_run_t) before writers attempt access
#
# See: https://github.com/coreos/fedora-coreos-config/pull/4454
d /run/issue.d 0755 root root - -

View file

@ -6,7 +6,6 @@ IGNITION_RESULT=/etc/.ignition-result.json
WARN='\033[0;33m' # yellow
RESET='\033[0m' # reset
mkdir -p /run/issue.d
touch /run/issue.d/30_coreos_ignition_provisioning.issue
d=$(date --date "$(jq -r .provisioningDate "${IGNITION_RESULT}")" +"%Y/%m/%d %H:%M:%S %Z")