summaryrefslogtreecommitdiff
path: root/src/nspawn
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-03-31 15:34:01 +0200
committerLennart Poettering <lennart@poettering.net>2015-03-31 15:36:53 +0200
commit4f923a1984476de3441922ee5bf7102ebdd250ef (patch)
tree663a400821c9ed3c01a03b580bd31e46073f005d /src/nspawn
parent4543768d13946e9193b367330cb32ded4d96058a (diff)
nspawn: drop sd_booted() check
We have no such check in any of the other tools, hence don't have one in nspawn either. (This should make things nicer for Rocket, among other things) Note: removing this check does not mean that we support running nspawn on non-systemd. We explicitly don't. It just means that we remove the check for running it like that. You are still on your own if you do...
Diffstat (limited to 'src/nspawn')
-rw-r--r--src/nspawn/nspawn.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
index 685dafa690..b8301410cd 100644
--- a/src/nspawn/nspawn.c
+++ b/src/nspawn/nspawn.c
@@ -3707,12 +3707,6 @@ int main(int argc, char *argv[]) {
goto finish;
}
- if (sd_booted() <= 0) {
- log_error("Not running on a systemd system.");
- r = -EINVAL;
- goto finish;
- }
-
log_close();
n_fd_passed = sd_listen_fds(false);
if (n_fd_passed > 0) {