From a6bc5aa7bb2749e4abfd756c28a62d02ae2b0433 Mon Sep 17 00:00:00 2001 From: Vladimir Still <git@vstill.eu> Date: Wed, 4 Sep 2019 14:25:18 +0200 Subject: [PATCH] debootstrap: Enable ttyS0 too --- debootstrap-stage2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debootstrap-stage2 b/debootstrap-stage2 index f7712cb..84cd6f9 100644 --- a/debootstrap-stage2 +++ b/debootstrap-stage2 @@ -52,7 +52,7 @@ else apt install -yy grub-pc fi if ! grep -q 'console serial' /etc/default/grub; then - sed -i /etc/default/grub -e "s/GRUB_CMDLINE_LINUX_DEFAULT=\"quiet\"/GRUB_CMDLINE_LINUX_DEFAULT=\"quiet console=tty0 console=ttyS1,$SERIAL_SPEED\"/" + sed -i /etc/default/grub -e "s/GRUB_CMDLINE_LINUX_DEFAULT=\"quiet\"/GRUB_CMDLINE_LINUX_DEFAULT=\"quiet console=tty0 console=ttyS0,$SERIAL_SPEED console=ttyS1,$SERIAL_SPEED\"/" cat >> /etc/default/grub <<EOF # Preload both GPT and MBR modules so that they are not missed GRUB_PRELOAD_MODULES="part_gpt part_msdos lvm" -- GitLab