summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Clausen <jac@nordu.net>2018-08-02 10:32:54 +0200
committerJon Clausen <jac@nordu.net>2018-08-02 10:32:54 +0200
commita69b7887558f37e28a7ac2bea70b207bece3a7fa (patch)
treeb467d45fa7c64c2206e7b0aae733c77d6add1b18
parent02a92a4c737f3f3d7f5e6d18dd7f8f831a469ce6 (diff)
try some grub stuff
-rw-r--r--ks-template/hw/dell/R7425/100g-dtn.ks10
1 files changed, 10 insertions, 0 deletions
diff --git a/ks-template/hw/dell/R7425/100g-dtn.ks b/ks-template/hw/dell/R7425/100g-dtn.ks
index 478440d..ac79841 100644
--- a/ks-template/hw/dell/R7425/100g-dtn.ks
+++ b/ks-template/hw/dell/R7425/100g-dtn.ks
@@ -57,6 +57,15 @@ kexec-tools
# %post
# disallow root login via ssh:
/bin/sed -i '' -e 's/#PermitRootLogin yes/PermitRootLogin no/' /etc/ssh/sshd_config
+
+# GRUB stuffs:
+# anaconda insists on adding 'rhgb quiet' to the kernel commandline, so:
+sed -ie "s/rhgb quiet/KRNLCMDLINE/" /etc/default/grub
+sed -ie "/TERMINAL.*/d" /etc/default/grub
+echo 'GRUB_TERMINAL="serial console"' >>/etc/default/grub
+echo 'GRUB_SERIAL_COMMAND="serial --speed=115200"' >>/etc/default/grub
+/sbin/grub2-mkconfig -o /boot/grub2/grub.cfg
+
# try to get access to the screen:
exec < /dev/tty6 > /dev/tty6
chvt 6
@@ -74,6 +83,7 @@ else
chmod +x /bin/cosmos-bootstrap
/bin/cosmos-bootstrap "http://gitproxy.nordu.net/ndn-sysconf.git" ${CosmosHash} HOSTNAME.DOMAIN
fi
+
# return to the first vt
chvt 1
%end