diff --git a/debootstrap-stage2 b/debootstrap-stage2 index f7712cbc0ae3c986da11d4fe05bdca9742a76f13..84cd6f9c933424a90f4d1ba6709dbc633f66071f 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"