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

First half of compatibility with mkosi v15+ #69

Merged
merged 4 commits into from
Dec 4, 2024

Conversation

marc-hb
Copy link
Collaborator

@marc-hb marc-hb commented Dec 4, 2024

First half of bigger #68

Not compatible with mkosi v15+ yet (only the first half) but goes a long way.

The default mkosi version and system configuration there needs them.

Signed-off-by: Marc Herbert <[email protected]>
@marc-hb marc-hb marked this pull request as ready for review December 4, 2024 07:46
run_qemu.sh Outdated
process_mkosi_template()
{
local src="$1"
< "$1" sed \
Copy link
Member

Choose a reason for hiding this comment

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

Should this use "$src" since we just defined it?
Also why not use sed <args> "$src" instead of redirection (easier to read maybe?) - and if we do want to use stdin redirection, maybe use the more canonical form of sed <args> < "$src" ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Could catch; that's a leftover from a previous iteration.

@stellarhopper
Copy link
Member

All other changes look good to me.

This is needed to move to multiple configuration files.

Signed-off-by: Marc Herbert <[email protected]>
More user-friendly and avoids accidental edits.

Signed-off-by: Marc Herbert <[email protected]>
Switch generated mkosi configuration from a single file to multiple
files" either `mkosi.default.d/*.conf` or `mkosi.default.d/*.conf`
depending on the mkosi version. Zero functional change: for now the
effective configuration should be the same in both directories and as
before. But this is the major step towards supporting mkosi versions 15
and above.

Signed-off-by: Marc Herbert <[email protected]>
@stellarhopper stellarhopper merged commit fca4619 into pmem:main Dec 4, 2024
1 of 2 checks passed
@marc-hb marc-hb deleted the v15-1 branch December 4, 2024 17:46
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