mirror of
https://github.com/troglobit/finit.git
synced 2026-10-14 10:19:36 +00:00
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:
1 parent
ef9e9ec786
commit
6fa3aa41df
7 files changed
+97
-57
No files matched your search
+1
-1
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user