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

set sysroot.bootprefix true in OSTree config #3718

Merged
merged 5 commits into from
Feb 6, 2024

Conversation

dustymabe
Copy link
Member

This setting will make it so that BLS config entries get prepended with /boot. OSTree already places a boot -> . symlink in the root of the boot filesystem prepending with /boot will always just work.

For context see osbuild/osbuild#1566 (comment)

This also allows for dropping one of the upstream OSBuild zipl stage patches.

jlebon
jlebon previously approved these changes Feb 6, 2024
@jlebon
Copy link
Member

jlebon commented Feb 6, 2024

Note BTW the upstream default will change in ostreedev/ostree#3156, which would make adding a knob unnecessary. (Unless it's to set it to false though then maybe the description should be updated.)

@dustymabe
Copy link
Member Author

Note BTW the upstream default will change in ostreedev/ostree#3156,

+1

This setting will make it so that BLS config entries get prepended
with /boot. OSTree already places a boot -> . symlink in the root
of the boot filesystem prepending with /boot will always just work.

For context see osbuild/osbuild#1566 (comment)

This also allows for dropping one of the upstream OSBuild zipl stage
patches.
org.osbuild.mkdir takes in a number (base 10) and not octal so
we need to convert from octal to a number. I realized that the
/boot/efi directory needed to also be `0o755` so update that one too.
Addition of platforms.json was originally added in 410cf90. Here
we make a few improvements:

- We don't need to export platforms_json has that wasn't being done
  before 410cf90.
- We need to only create a file that gets included in the OSTree
  or Container if there are platforms.yaml entries for that arch.
  So we modify it here to create "${platforms_json}.all" first and
  only write to "${platforms_json}" inside the if condition. This
  makes it so s390x won't get a platforms.json file, which is what
  we want.
- We need to create these files in directories scoped to individual
  processes. i.e. if `cosa buildextend-metal` and `cosa buildextend-metal4k`
  run at the same time creating these files shouldn't race.
There are no platforms.yaml entries on that platform so we don't
create a platforms.json file inside the OSTree and we we shouldn't
try to copy the file.
@dustymabe
Copy link
Member Author

added a few more commits here to fix a problem recently introduced.

@dustymabe dustymabe enabled auto-merge (rebase) February 6, 2024 20:33
@dustymabe dustymabe merged commit 495ec35 into coreos:main Feb 6, 2024
5 checks passed
@dustymabe dustymabe deleted the dusty-bootprefix branch February 6, 2024 21:35
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