run(): add support for logging/redirect

This patch adds support for optional logging of output from all run()
commands.  For run_interactive() we've opted to log instead of just
redirect, meaning output on error is till on console but also in log.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2022-03-01 20:46:01 +01:00
1 parent ef9e9ec786
commit 6fa3aa41df
7 files changed
+97 -57

No files matched your search

+1 -1
View File
@@ -333,7 +333,7 @@ static void fs_mount_all(void)
_d("Calling extra mount hook, after mount -a ...");
plugin_run_hooks(HOOK_MOUNT_POST);
run("swapon -ea");
run("swapon -ea", "swapon");
_d("Finalize, ensure common file systems are available ...");
fs_finalize();