Use ttyAMA0 based on hostname instead of arch
authorPeter Palfrader <peter@palfrader.org>
Fri, 18 Aug 2017 13:02:00 +0000 (15:02 +0200)
committerPeter Palfrader <peter@palfrader.org>
Fri, 18 Aug 2017 13:02:00 +0000 (15:02 +0200)
modules/grub/templates/puppet-kernel-serial.cfg.erb

index 4b5026d..0a085ef 100644 (file)
@@ -1,4 +1,4 @@
-<%- if scope.lookupvar('::debarchitecture') == "arm64" -%>
+<%- if %w{arm-conova-01 arm-arm-01}.include?(hostname) then -%>
 GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX console=ttyAMA0,115200n8"
 <% else -%>
 GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX console=tty0 console=ttyS0,115200n8"