debootstrap: Enable ttyS0 too

parent f09837d5
......@@ -52,7 +52,7 @@ else
apt install -yy grub-pc
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"
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment