Skip to content
Snippets Groups Projects
Verified Commit a6bc5aa7 authored by Vladimír Štill's avatar Vladimír Štill
Browse files

debootstrap: Enable ttyS0 too

parent f09837d5
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment