chiark / gitweb /
nspawn: drop sd_booted() check
authorLennart Poettering <lennart@poettering.net>
Tue, 31 Mar 2015 13:34:01 +0000 (15:34 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 31 Mar 2015 13:36:53 +0000 (15:36 +0200)
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...

src/nspawn/nspawn.c

index 685dafa690d462c423e08c631a3355f990b93d46..b8301410cdfab86e15b4cab0e03f6c8553d51418 100644 (file)
@@ -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) {