Skip to content

Commit

Permalink
overlay/15fcos: strip extraneous version field from aleph file
Browse files Browse the repository at this point in the history
This causes bootupctl to fails while parsing the file.
The extra field was introduced in coreos/coreos-assembler@c2d37f4
then quickly reverted in coreos/coreos-assembler#3686

Still, a couple of builds (39.20231204.1.0 and 39.20231204.2.1) went out with the change.
Fixing this will allow bootupctl to function properly on nodes deployed with this version.
This jq filter is idempotent so it's safe to run on all nodes.

This should be removed after the next barrier release.

Fixes coreos/fedora-coreos-tracker#1724
  • Loading branch information
jbtrystram committed Jun 27, 2024
1 parent dfb0b16 commit 62b3df1
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Remove after the next barrier release
# https://github.com/coreos/fedora-coreos-tracker/issues/1724

[Unit]
Description=Remove extra attribute from aleph file

[Service]
Type=oneshot
ExecStart=cat <<< $(jq 'del(.version)' /sysroot/.coreos-aleph-version.json) > /sysroot/.coreos-aleph-version.json
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target

0 comments on commit 62b3df1

Please sign in to comment.