From: Ian Campbell <ian.campbell@citrix.com>
To: ian.jackson@eu.citrix.com, xen-devel@lists.xen.org
Cc: Ian Campbell <ian.campbell@citrix.com>
Subject: [PATCH OSSTEST] Debian: Arrange to drop "quiet" from command line of installed system
Date: Thu, 8 Oct 2015 11:33:13 +0100 [thread overview]
Message-ID: <1444300393-15900-1-git-send-email-ian.campbell@citrix.com> (raw)
By editing /etc/default/grub in a late command iff it exists.
This will effect ts-debian-{hvm,di}-install as well as
ts-host-install and hence effect guests as well as hosts.
The overall effect is that we will log more upon guest boot as well as
on the initial host boot.
Note that for hosts we also strip the "quiet" when updating grub as
part of ts-xen-install, this code remains (although it won't do so
much now).
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
---
Osstest/Debian.pm | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm
index 9347c49..bd482d6 100644
--- a/Osstest/Debian.pm
+++ b/Osstest/Debian.pm
@@ -789,6 +789,19 @@ sub preseed_base ($$$$;@) {
preseed_ssh($ho, $sfx);
+ preseed_hook_command($ho, 'late_command', '', <<'END');
+#!/bin/sh
+set -ex
+
+grub=/etc/default/grub
+if [ -f /target$grub ] ; then
+ in-target sed -i \
+ 's/^\(GRUB_CMDLINE_LINUX_DEFAULT=".*\)\bquiet\b\(.*"\)$/\1\2/g' \
+ $grub
+ in-target update-grub
+fi
+END
+
debian_overlays(sub {
my ($srcdir, $tfilename) = @_;
preseed_hook_overlay($ho, $sfx, $srcdir, $tfilename);
--
2.5.3
next reply other threads:[~2015-10-08 10:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-08 10:33 Ian Campbell [this message]
2015-10-08 15:52 ` [PATCH OSSTEST] Debian: Arrange to drop "quiet" from command line of installed system Ian Jackson
2015-10-08 15:59 ` Ian Campbell
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=1444300393-15900-1-git-send-email-ian.campbell@citrix.com \
--to=ian.campbell@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=xen-devel@lists.xen.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;
as well as URLs for NNTP newsgroup(s).