Skip to content

Commit

Permalink
s390x: secex: disable Ignition's logs
Browse files Browse the repository at this point in the history
  • Loading branch information
nikita-dubrovskii committed Feb 14, 2023
1 parent 06bb0fe commit 77295d3
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,17 @@ EOF
mkdir -p /run/coreos/
touch /run/coreos/secure-execution
cp /usr/lib/coreos/01-secex.ign /usr/lib/ignition/base.d/01-secex.ign
# Add dropins to disable Ignition logging for all stages
stages=("fetch-offline" "fetch" "kargs" "disks" "mount" "files")
for s in "${stages[@]}"; do
dropin="${UNIT_DIR}/ignition-${s}.service.d"
mkdir -p "${dropin}"
cat > "${dropin}/10-secex.conf" <<EOF
[Service]
Environment=IGNITION_ARGS=-log-to-stdout
StandardOutput=null
StandardError=null
EOF
done
fi
fi

0 comments on commit 77295d3

Please sign in to comment.