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 <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2013-05-19 19:01:45 +02:00
parent 5d04a72a61
commit 011b73ba39
+5
View File
@@ -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);