Revert "nspawn: catch config mistake of specifying -b and args"

This reverts commit cb96a2c69a.

It is not a mistake to pass args when -b is specified. They will simply
be passed on to the container's init.

The manpage needs fixing, that's true.
This commit is contained in:
Michal Schmidt
2013-02-25 18:33:08 +01:00
parent 317c96d944
commit 1ddf879acf
2 changed files with 1 additions and 8 deletions

View File

@@ -170,9 +170,7 @@
<listitem><para>Automatically search
for an init binary and invoke it
instead of a shell or a user supplied
program. A command to execute cannot
be specified in this case.
</para></listitem>
program.</para></listitem>
</varlistentry>
<varlistentry>

View File

@@ -267,11 +267,6 @@ static int parse_argv(int argc, char *argv[]) {
}
}
if (optind < argc && arg_boot) {
log_error("Cannot specify a command together with '-b'");
return -EINVAL;
}
return 1;
}