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

systemctl (>=227) fails in chroots instead of ignoring #2015

Closed
absurd34 opened this issue Nov 24, 2015 · 1 comment
Closed

systemctl (>=227) fails in chroots instead of ignoring #2015

absurd34 opened this issue Nov 24, 2015 · 1 comment
Labels
bug 🐛 Programming errors, that need preferential fixing systemctl
Milestone

Comments

@absurd34
Copy link

Hi systemd maintainers,

since systemd 227, the behaviour of systemctl in chroot environments has changed:

<= 226: Ignored, retval 0:

root? systemctl restart non-existing.service

Running in chroot, ignoring request.

= 227: Fails, retval 6:

root? systemctl restart non-existing.service

Failed to restart non-existing.service: Unit non-existing.service failed to load: No such file or directory.

Fwiw, In the (227 failing) case, the error of systemctl varies, depending on how your chroot is setup -- in a more sparse setup than mine, you will probably get the dbus error first; in any case however, 226 just "works fine" and ignores the call.

This does also occur an actual packages/services, which effectively breaks (Debian) package installation and removal in chroots (unless especially patched). This Debian bug report

https://bugs.debian.org/802780

has some more information about this.

So was the chroot ignore check removed intentionally, or is this just a bug?

Imho, the previous behaviour should be re-established.

Thanks!

S

@poettering poettering added bug 🐛 Programming errors, that need preferential fixing systemctl labels Nov 26, 2015
@poettering poettering added this to the v229 milestone Jan 27, 2016
poettering added a commit to poettering/systemd that referenced this issue Jan 28, 2016
…hroot() environments

This adds some basic infrastructure in order to fix systemd#2015.
@poettering
Copy link
Member

Fix waiting in #2465.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Programming errors, that need preferential fixing systemctl
Development

No branches or pull requests

2 participants