Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

manifests/fedora-coreos-base: add systemd override for ssh host key migration #2388

Merged
merged 1 commit into from
Apr 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions manifests/fedora-coreos-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,22 @@ postprocess:
set -xeuo pipefail
rm -vrf /usr/lib/modules/*aarch64/dtb/qcom/

# Force the ssh-host-keys-migration to happen on every boot
# to handle cases where someone did a upgrade->rollback->upgrade
# See https://github.com/coreos/fedora-coreos-tracker/issues/1473
# We should remove this after the next barrier release.
- |
#!/usr/bin/env bash
set -xeuo pipefail
mkdir -p /usr/lib/systemd/system/ssh-host-keys-migration.service.d
cat <<'EOF' > /usr/lib/systemd/system/ssh-host-keys-migration.service.d/coreos-force-migration-on-every-boot.conf
# Force the ssh-host-keys-migration to happen on every boot
# to handle cases where someone did a upgrade->rollback->upgrade
# See https://github.com/coreos/fedora-coreos-tracker/issues/1473
[Unit]
ConditionPathExists=
EOF

# Packages listed here should be specific to Fedore CoreOS (as in not yet
# available in RHCOS or not desired in RHCOS). All other packages should go
# into one of the sub-manifests listed at the top.
Expand Down