mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 01:38:57 +00:00
Print out the commands from /boot.config after parsing them so that they
output is sent to the correct console(s). PR: kern/66425 Submitted by: Gavin Atkinson gavin at ury dot york dot ac dot uk MFC after: 1 week
This commit is contained in:
parent
d0cad55da8
commit
5b09b18204
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=146696
@ -243,9 +243,9 @@ main(void)
|
||||
fsread(ino, cmd, sizeof(cmd));
|
||||
|
||||
if (*cmd) {
|
||||
printf("%s: %s", PATH_CONFIG, cmd);
|
||||
if (parse())
|
||||
autoboot = 0;
|
||||
printf("%s: %s", PATH_CONFIG, cmd);
|
||||
/* Do not process this command twice */
|
||||
*cmd = 0;
|
||||
}
|
||||
|
@ -243,9 +243,9 @@ main(void)
|
||||
fsread(ino, cmd, sizeof(cmd));
|
||||
|
||||
if (*cmd) {
|
||||
printf("%s: %s", PATH_CONFIG, cmd);
|
||||
if (parse())
|
||||
autoboot = 0;
|
||||
printf("%s: %s", PATH_CONFIG, cmd);
|
||||
/* Do not process this command twice */
|
||||
*cmd = 0;
|
||||
}
|
||||
|
@ -124,8 +124,8 @@ boot(int drive)
|
||||
readfile("boot.config", boot_config, BOOT_CONFIG_SIZE);
|
||||
name = "/boot/loader";
|
||||
if (boot_config[0] != '\0') {
|
||||
printf("boot.config: %s", boot_config);
|
||||
getbootdev(boot_config, &loadflags);
|
||||
printf("boot.config: %s", boot_config);
|
||||
if (openrd() != 0)
|
||||
name = "kernel";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user