mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-08-25 17:27:20 +00:00
nspawn: catch config mistake of specifying -b and args
This commit is contained in:
@@ -170,7 +170,9 @@
|
|||||||
<listitem><para>Automatically search
|
<listitem><para>Automatically search
|
||||||
for an init binary and invoke it
|
for an init binary and invoke it
|
||||||
instead of a shell or a user supplied
|
instead of a shell or a user supplied
|
||||||
program.</para></listitem>
|
program. A command to execute cannot
|
||||||
|
be specified in this case.
|
||||||
|
</para></listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
|
|||||||
@@ -267,6 +267,11 @@ 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;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user