From 011b73ba39f0c987a650e386d4654389ef0ca868 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Fri, 17 May 2013 16:23:42 +0200 Subject: [PATCH] Fix issue with "Formatting of boot text changes in the middle of the boot." This commit adds a line: "Loading kernel modules ..." before increasing indentation level of module loading messages. Signed-off-by: Joachim Nilsson --- conf.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/conf.c b/conf.c index 55de7560..f3eb9ddc 100644 --- a/conf.c +++ b/conf.c @@ -60,6 +60,7 @@ static char *build_cmd(char *cmd, char *line, int len) void parse_finit_conf(char *file) { FILE *fp; + int modfirst = 1; char line[LINE_SIZE]; char cmd[CMD_SIZE]; @@ -105,6 +106,10 @@ void parse_finit_conf(char *file) continue; } if (MATCH_CMD(line, "module ", x)) { + if (modfirst) { + echo("Loading kernel modules ..."); + modfirst = 0; + } strcpy(cmd, "/sbin/modprobe "); build_cmd(cmd, x, CMD_SIZE); run_interactive(cmd, " Loading module %s", x);