Skip to content

nspawn: chown() the legacy hierarchy when it's used in a container - #10104

Merged
poettering merged 1 commit into
systemd:masterfrom
evverx:chown-legacy-hierarchy-too
Sep 26, 2018
Merged

poettering merged 1 commit into
systemd:masterfrom
evverx:chown-legacy-hierarchy-too

Conversation

@evverx

@evverx evverx commented Sep 17, 2018

Copy link
Copy Markdown
Contributor

This is a follow-up to 720f0a2.

Closes #10026
Closes #9563

@flokli

flokli commented Sep 23, 2018 •

Copy link
Copy Markdown
Contributor

@evverx I can confirm this fixes the issue for me - systemd 230 in the container, systemd 239 plus your patch on top.

Containers with a recent systemd still work, too.

Thanks a lot!

@flokli

flokli commented Sep 23, 2018

Copy link
Copy Markdown
Contributor

Given the "dont-merge" label: How is this PR intended? Do you want to collect more feedback? Is that a workaround that won't get merged in?

@evverx

evverx commented Sep 23, 2018

Copy link
Copy Markdown
Contributor Author

The PR is ready to be merged. I just forgot to remove the label after I made sure that it worked. Thank you for checking it out and for the nudge!

@flokli

flokli commented Sep 23, 2018

Copy link
Copy Markdown
Contributor

ok, thanks for the clarification. Looking forward to the merge, and a release containing the fix ;-)

@Mic92

Mic92 commented Sep 23, 2018

Copy link
Copy Markdown
Contributor

It make sense to also push this to https://github.com/systemd/systemd-stable/commits/v239-stable

@Mic92

Mic92 commented Sep 23, 2018

Copy link
Copy Markdown
Contributor

I also tested this patch.

flokli added a commit to flokli/nixpkgs that referenced this pull request Sep 24, 2018
This fixes nspawn containers with older systemd inside currently failing
to start.

See:
NixOS/systemd#23
systemd/systemd#10104
NixOS#47253
Mic92 pushed a commit to NixOS/nixpkgs that referenced this pull request Sep 24, 2018
This fixes nspawn containers with older systemd inside currently failing
to start.

See:
NixOS/systemd#23
systemd/systemd#10104
#47253
Mic92 pushed a commit to NixOS/nixpkgs that referenced this pull request Sep 24, 2018
This fixes nspawn containers with older systemd inside currently failing
to start.

See:
NixOS/systemd#23
systemd/systemd#10104
#47253
(cherry picked from commit c3cc34f)
@evverx

evverx commented Sep 25, 2018

Copy link
Copy Markdown
Contributor Author

It's impressive that the patch has already been downstreamed without even making it upstream :-) @poettering could you take a look so that we could catch up with NixOS folks?

@evverx
evverx requested a review from poettering September 25, 2018 23:41
@flokli

flokli commented Sep 25, 2018

Copy link
Copy Markdown
Contributor

@evverx hah, that's mostly due to NixOS 18.09 release being around the corner, shipping with 239, and not wanting to break existing nspawn setups - but thanks :-)

@poettering
poettering merged commit 89f1802 into systemd:master Sep 26, 2018
@evverx
evverx deleted the chown-legacy-hierarchy-too branch September 27, 2018 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

4 participants