Skip to content

Conversation

@cgwalters
Copy link
Collaborator

This one was subtle...at some point we moved over to Rust raw strings r# where we no longer needed \\. The next bug here is we were missing After=.

The semantics of a plain Requires= without After= are very weak and systemd basically skipped over the missing device.

Closes: #139

This one was subtle...at some point we moved over to Rust raw strings `r#`
where we no longer needed `\\`. The next bug here is we were missing
`After=`.

The semantics of a plain `Requires=` without `After=` are very weak
and systemd basically skipped over the missing device.

Closes: bootc-dev#139

Signed-off-by: Colin Walters <walters@verbum.org>
@cgwalters cgwalters enabled auto-merge (rebase) November 7, 2025 21:38
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request correctly fixes a subtle bug in the systemd unit generation by adding the necessary After= directive to complement the existing Requires=, ensuring the correct service execution order. The change also fixes an incorrect backslash escape sequence within a raw string. The changes are concise and effective. I've added a couple of suggestions to improve maintainability by extracting repeated string literals into variables, which will make future modifications easier and less error-prone.

@cgwalters cgwalters requested a review from jeckersb November 10, 2025 14:35
@cgwalters cgwalters merged commit 1ce844f into bootc-dev:main Nov 10, 2025
7 checks passed
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.

ephemeral: --execute flake

2 participants