Skip to content

nspawn: when running nspawn, set a $PATH including both bin + sbin by… - #8756

Merged
keszybz merged 1 commit into
systemd:masterfrom
poettering:nspawn-path
Apr 20, 2018
Merged

keszybz merged 1 commit into
systemd:masterfrom
poettering:nspawn-path

Conversation

@poettering

Copy link
Copy Markdown
Member

… default

We don't know what the container payload needs, hence default to a PATH
with both bin and sbin included, as well as / and /usr.

Follow-up for #8324

Fixes: #8698

@filbranden

Copy link
Copy Markdown
Contributor

LGTM.

Comment thread src/basic/path-util.h Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

NULSTR must use \0 as sepearator, not ":".

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

ouch

@keszybz keszybz added the reviewed/needs-rework 🔨 PR has been reviewed and needs another round of reworks label Apr 18, 2018
… default

We don't know what the container payload needs, hence default to a PATH
with both bin and sbin included, as well as / and /usr.

Follow-up for systemd#8324

Fixes: systemd#8698
@poettering

Copy link
Copy Markdown
Member Author

I dropped the NULSTR definition altogether, after all we don't need it, and if we need it one day we can still add it.

@poettering poettering removed the reviewed/needs-rework 🔨 PR has been reviewed and needs another round of reworks label Apr 18, 2018
@keszybz
keszybz merged commit 0c300ad into systemd:master Apr 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

3 participants