X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fgrub%2Ftemplates%2Fpuppet-grub-serial.cfg.erb;h=767a0ea34de128cca90a8c611e68051cce1ba890;hb=a3602762e8a1122180fd557284f7e78875ea89ec;hp=42597a9d76ae54541292dcf4ef36b040cc6d52fa;hpb=a640453031f7f590851d8e0f27fb3de39be2801a;p=mirror%2Fdsa-puppet.git diff --git a/modules/grub/templates/puppet-grub-serial.cfg.erb b/modules/grub/templates/puppet-grub-serial.cfg.erb index 42597a9d7..767a0ea34 100644 --- a/modules/grub/templates/puppet-grub-serial.cfg.erb +++ b/modules/grub/templates/puppet-grub-serial.cfg.erb @@ -1,8 +1,6 @@ -<%- 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 -%> - GRUB_TERMINAL="serial console" +<%- if %w{storace klecker clementi czerny csail-node01 csail-node02}.include?(@hostname) then -%> +GRUB_SERIAL_COMMAND="serial --unit=1 --speed=115200 --word=8 --parity=no --stop=1" +<% else -%> GRUB_SERIAL_COMMAND="serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1" +<% end -%>