From aaa1de0046295cfd1f7a5428f399a5d1f9e1e563 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Thu, 20 Jun 2013 14:04:29 +0800 Subject: discover/boot: Allow boot hooks to alter boot data By exiting with status == 2, boot hooks can update boot data by printing name=value to stdout. Signed-off-by: Jeremy Kerr --- lib/system/system.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/system/system.c b/lib/system/system.c index 7bb4997..528e134 100644 --- a/lib/system/system.c +++ b/lib/system/system.c @@ -159,9 +159,9 @@ int pb_run_cmd_pipe(const char *const *cmd_argv, int wait, int dry_run, int status, pipefd[2]; pid_t pid; - assert(!wait && stdout_buf); - assert(!!ctx != !!stdout_buf); - assert(!!stdout_buf != !!stdout_buf_len); + assert(!stdout_buf || wait); + assert(!stdout_buf || ctx); + assert(!stdout_buf || stdout_buf_len); if (do_debug) { const char *const *p = cmd_argv; -- cgit v1.2.1