Skip to content

systemd: Escape %s in oem-cloudinit.service - #146

Merged
chewi merged 1 commit into
flatcar-masterfrom
chewi/oem-cloudinit-escape
Sep 4, 2026
Merged

systemd: Escape %s in oem-cloudinit.service#146
chewi merged 1 commit into
flatcar-masterfrom
chewi/oem-cloudinit-escape

Conversation

@chewi

@chewi chewi commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Copilot made a bad suggestion in #145. I had previously tested this with echo rather than printf. I haven't tested this change, but it can't make things any worse.

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
@chewi chewi self-assigned this Sep 4, 2026
@chewi
chewi requested a review from a team as a code owner September 4, 2026 11:25
Copilot AI lite review requested due to automatic review settings September 4, 2026 11:25

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The change is minimal, localized, and correct for systemd unit file % escaping semantics, with no apparent side effects.

Pull request overview

This PR fixes a systemd unit escaping issue so the ExecStart command passes the intended printf format string (%s) to the shell instead of being interpreted as a systemd specifier.

Changes:

  • Escape the % in printf "%s" as printf "%%s" within oem-cloudinit.service to avoid systemd specifier expansion.
File summaries
File Description
systemd/system/oem-cloudinit.service Escapes % in the printf format string to ensure correct runtime behavior under systemd.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@tormath1 tormath1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot is curiously silent on this one.

@chewi
chewi merged commit 77ffa2c into flatcar-master Sep 4, 2026
5 checks passed
@chewi
chewi deleted the chewi/oem-cloudinit-escape branch September 4, 2026 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants