Commit a6bc5aa7 authored by Vladimír Štill's avatar Vladimír Štill

debootstrap: Enable ttyS0 too

parent f09837d5
......@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment