Use ttyAMA0 based on hostname instead of arch
[mirror/dsa-puppet.git] / 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"