mirror of
https://github.com/coreos/fedora-coreos-config.git
synced 2026-11-03 14:49:47 -09:00
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:
parent
567ab1d1d7
commit
1590d19721
2 changed files with 4 additions and 1 deletions
4
overlay.d/05core/usr/lib/tmpfiles.d/coreos-issued.conf
Normal file
4
overlay.d/05core/usr/lib/tmpfiles.d/coreos-issued.conf
Normal 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 - -
|
||||
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in a new issue