public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Robin H. Johnson" <robbat2@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/releng:master commit in: releases/weekly/scripts/
Date: Mon, 25 Apr 2016 23:27:49 +0000 (UTC)	[thread overview]
Message-ID: <1461626864.430eda0a519869fd59c7ac791e83e06af2a5e876.robbat2@gentoo> (raw)

commit:     430eda0a519869fd59c7ac791e83e06af2a5e876
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 25 23:24:56 2016 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Mon Apr 25 23:27:44 2016 +0000
URL:        https://gitweb.gentoo.org/proj/releng.git/commit/?id=430eda0a

cloud-prep: make grub accessible on serial console, just like the kernel.

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 releases/weekly/scripts/cloud-prep.sh | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/releases/weekly/scripts/cloud-prep.sh b/releases/weekly/scripts/cloud-prep.sh
index 20f3c5a..d1f98f3 100644
--- a/releases/weekly/scripts/cloud-prep.sh
+++ b/releases/weekly/scripts/cloud-prep.sh
@@ -16,9 +16,14 @@ grep -v rootfs /proc/mounts > /etc/mtab
 echo 'net.ipv4.conf.eth0.arp_notify = 1' >> /etc/sysctl.conf
 echo 'vm.swappiness = 0' >> /etc/sysctl.conf
 
-# Let's configure out grub
+# Let's configure our grub
+# Access on both regular tty and serial console
 mkdir /boot/grub
-echo 'GRUB_CMDLINE_LINUX="console=tty0 console=ttyS0,115200n8"' >> /etc/default/grub
+cat >>/etc/default/grub <<EOF
+GRUB_TERMINAL='serial console'
+GRUB_CMDLINE_LINUX="console=tty0 console=ttyS0,115200n8"
+GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"
+EOF
 grub2-mkconfig -o /boot/grub/grub.cfg
 sed -r -i 's/loop[0-9]+p1/LABEL\=cloudimg-rootfs/g' /boot/grub/grub.cfg
 sed -i 's/root=.*\ ro/root=LABEL\=cloudimg-rootfs\ ro/' /boot/grub/grub.cfg


             reply	other threads:[~2016-04-25 23:27 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-25 23:27 Robin H. Johnson [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-04-02 23:50 [gentoo-commits] proj/releng:master commit in: releases/weekly/scripts/ Matt Turner
2016-04-25 23:27 Robin H. Johnson
2016-04-14  0:35 Matt Thode
2016-01-26  6:44 Matt Thode
2016-01-26  0:41 Matt Thode
2016-01-22  7:54 Matt Thode
2016-01-13  2:51 Matt Thode
2016-01-10 21:56 Matt Thode
2015-12-30  3:31 Matt Thode
2015-12-29  5:10 Matt Thode
2015-12-29  4:47 Matt Thode
2015-12-27  2:37 Jorge Manuel B. S. Vicetto
2015-12-21  2:49 Jorge Manuel B. S. Vicetto

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1461626864.430eda0a519869fd59c7ac791e83e06af2a5e876.robbat2@gentoo \
    --to=robbat2@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox