mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-12 20:16:49 +02:00
grub: Don't use VGA for serial installations
On systems without a graphics card, grub did not count down the timeout.
This commit is contained in:
@@ -167,7 +167,7 @@ endif
|
||||
ifeq "$(BOOTLOADER)" "grub"
|
||||
ifeq "$(SCON)" "1"
|
||||
# Enable serial console on GRUB
|
||||
echo "GRUB_TERMINAL=\"serial console\"" >> $(MNThdd)/etc/default/grub
|
||||
echo "GRUB_TERMINAL=\"serial\"" >> $(MNThdd)/etc/default/grub
|
||||
echo "GRUB_SERIAL_COMMAND=\"serial --unit=0 --speed=115200\"" >> $(MNThdd)/etc/default/grub
|
||||
|
||||
sed -i -e "s|panic=10|& console=ttyS0,115200n8|g" $(MNThdd)/etc/default/grub
|
||||
|
||||
@@ -621,7 +621,7 @@ int main(int argc, char *argv[]) {
|
||||
goto EXIT;
|
||||
}
|
||||
|
||||
fprintf(f, "GRUB_TERMINAL=\"serial console\"\n");
|
||||
fprintf(f, "GRUB_TERMINAL=\"serial\"\n");
|
||||
fprintf(f, "GRUB_SERIAL_COMMAND=\"serial --unit=0 --speed=%d\"\n", SERIAL_BAUDRATE);
|
||||
fclose(f);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user