split grub and kernel serial
[mirror/dsa-puppet.git] / modules / grub / templates / puppet-kernel-serial.cfg.erb
diff --git a/modules/grub/templates/puppet-kernel-serial.cfg.erb b/modules/grub/templates/puppet-kernel-serial.cfg.erb
new file mode 100644 (file)
index 0000000..4b5026d
--- /dev/null
@@ -0,0 +1,5 @@
+<%- if scope.lookupvar('::debarchitecture') == "arm64" -%>
+GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX console=ttyAMA0,115200n8"
+<% else -%>
+GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX console=tty0 console=ttyS0,115200n8"
+<%- end -%>