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

treefile: Add container-cmd #3402

Merged
merged 1 commit into from
Feb 4, 2022
Merged

Conversation

cgwalters
Copy link
Member

Builds on ostreedev/ostree-rs-ext#235

Part of coreos/coreos-assembler#2685

Note making use of this will require bumping ostree-ext here.

Builds on ostreedev/ostree-rs-ext#235

Part of coreos/coreos-assembler#2685

Note making use of this will require bumping ostree-ext here.
@@ -761,6 +761,18 @@ rpm_ostree_compose_context_new (const char *treefile_pathstr,
return FALSE;
}

auto cmd = (*self->treefile_rs)->get_container_cmd();
Copy link
Member Author

Choose a reason for hiding this comment

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

Man, passing data between Rust to C++ then to C sucks 😢

cgwalters added a commit to cgwalters/fedora-coreos-config that referenced this pull request Feb 4, 2022
Builds on coreos/rpm-ostree#3402

Relates to coreos/coreos-assembler#2685

Basically, source of truth for the CMD moves from being hardcoded
in cosa hackiliy to being part of the ostree commit, which means
it survives a full round trip of
ostree → container → ostree → container
@cgwalters
Copy link
Member Author

Copy link
Member

@jmarrero jmarrero left a comment

Choose a reason for hiding this comment

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

lgtm

@jmarrero jmarrero merged commit 3c64d05 into coreos:main Feb 4, 2022
cgwalters added a commit to cgwalters/fedora-coreos-config that referenced this pull request Mar 7, 2022
Builds on coreos/rpm-ostree#3402

Relates to coreos/coreos-assembler#2685

Basically, source of truth for the CMD moves from being hardcoded
in cosa hackiliy to being part of the ostree commit, which means
it survives a full round trip of
ostree → container → ostree → container
cgwalters added a commit to cgwalters/fedora-coreos-config that referenced this pull request Mar 8, 2022
Builds on coreos/rpm-ostree#3402

Relates to coreos/coreos-assembler#2685

Basically, source of truth for the CMD moves from being hardcoded
in cosa hackiliy to being part of the ostree commit, which means
it survives a full round trip of
ostree → container → ostree → container
jlebon pushed a commit to coreos/fedora-coreos-config that referenced this pull request Mar 8, 2022
Builds on coreos/rpm-ostree#3402

Relates to coreos/coreos-assembler#2685

Basically, source of truth for the CMD moves from being hardcoded
in cosa hackiliy to being part of the ostree commit, which means
it survives a full round trip of
ostree → container → ostree → container
HuijingHei pushed a commit to HuijingHei/fedora-coreos-config that referenced this pull request Oct 10, 2023
Builds on coreos/rpm-ostree#3402

Relates to coreos/coreos-assembler#2685

Basically, source of truth for the CMD moves from being hardcoded
in cosa hackiliy to being part of the ostree commit, which means
it survives a full round trip of
ostree → container → ostree → container
HuijingHei pushed a commit to HuijingHei/fedora-coreos-config that referenced this pull request Oct 10, 2023
Builds on coreos/rpm-ostree#3402

Relates to coreos/coreos-assembler#2685

Basically, source of truth for the CMD moves from being hardcoded
in cosa hackiliy to being part of the ostree commit, which means
it survives a full round trip of
ostree → container → ostree → container
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.

None yet

2 participants