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:
Michael Tremer
2014-09-09 15:01:19 +02:00
parent 42066c88d5
commit 7f6e04258a
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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);