Skip to content

systemd-252: backport PrivateDevices= race fix#922

Open
maherthomsi wants to merge 1 commit into
bottlerocket-os:developfrom
maherthomsi:systemd-backport
Open

systemd-252: backport PrivateDevices= race fix#922
maherthomsi wants to merge 1 commit into
bottlerocket-os:developfrom
maherthomsi:systemd-backport

Conversation

@maherthomsi
Copy link
Copy Markdown
Contributor

@maherthomsi maherthomsi commented May 11, 2026

Description of changes:

Backport the upstream systemd PrivateDevices= race condition fix from systemd/systemd#29343 into systemd-252, and revert the workaround introduced in #863.

Testing done:

  • Built Bottlerocket AMI (aws-k8s-1.35-x86_64-v1.60.0) with updated core kit
  • Boot tested 800 instances across 2 runs (400 each, t3.micro, 4 AZs in us-west-2)
  • 100% pass rate: all systemd services, SSM connectivity, and EC2 health checks passing

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

@maherthomsi maherthomsi force-pushed the systemd-backport branch 2 times, most recently from f1b37f2 to e2c1c01 Compare May 18, 2026 18:36
Backport the core fix from systemd PR #29343 (commit cd7f3702eb47).
Use /run/systemd/namespace-dev-XXXXXX instead of /tmp/namespace-dev-XXXXXX
for the PrivateDevices= temporary mount. This fixes early-boot failures
when /tmp is not yet mounted.

This also reverts commit 3423033.

Signed-off-by: Maher Homsi <maherhom@amazon.com>
@maherthomsi
Copy link
Copy Markdown
Contributor Author

Force push: Merging into one commit

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.

2 participants