From 4f8211f6a1dc9d441e306422b63f568f3bb2e79c Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Sat, 22 Oct 2016 18:36:51 +0200 Subject: [PATCH] Beautify 'mount -a' error message at boot This patch from TroglOS makes sure to print any error message from mount after [FAIL] is printed. Signed-off-by: Joachim Nilsson --- finit.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/finit.c b/finit.c index daee28df..c97d2009 100644 --- a/finit.c +++ b/finit.c @@ -232,7 +232,6 @@ static void emergency_shell(void) int main(int argc, char* argv[]) { - int err; char *devfsd; uev_ctx_t loop; @@ -367,11 +366,7 @@ int main(int argc, char* argv[]) plugin_run_hooks(HOOK_ROOTFS_UP); umask(0); - print_desc("Mounting filesystems", NULL); - - err = run("/bin/mount -na"); - print_result(err); - if (err) + if (run_interactive("/bin/mount -na", "Mounting filesystems")) plugin_run_hooks(HOOK_MOUNT_ERROR); run("/sbin/swapon -ea");