chiark / gitweb /
Revert "nspawn: catch config mistake of specifying -b and args"
authorMichal Schmidt <mschmidt@redhat.com>
Mon, 25 Feb 2013 17:33:08 +0000 (18:33 +0100)
committerMichal Schmidt <mschmidt@redhat.com>
Mon, 25 Feb 2013 17:39:16 +0000 (18:39 +0100)
This reverts commit cb96a2c69a312fb089fef4501650f4fc40a1420b.

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.

man/systemd-nspawn.xml
src/nspawn/nspawn.c

index 8396def003e59b3b61f793938ec6a7ab0108804b..5cba40bcd427ef7fdbcd086ffbccd59bb7daa1e9 100644 (file)
                                 <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>
index c346f58412e6add45d8d4a42752d2608a068e96a..b8962e9894480a0010326c2ba60800f9400bc1d7 100644 (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;
 }