projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
+++ b/
modules/grub/templates/puppet-kernel-serial.cfg.erb
@@ -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 -%>