xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH OSSTEST] Debian: Arrange to drop "quiet" from command line of installed system
@ 2015-10-08 10:33 Ian Campbell
  2015-10-08 15:52 ` Ian Jackson
  0 siblings, 1 reply; 3+ messages in thread
From: Ian Campbell @ 2015-10-08 10:33 UTC (permalink / raw)
  To: ian.jackson, xen-devel; +Cc: Ian Campbell

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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH OSSTEST] Debian: Arrange to drop "quiet" from command line of installed system
  2015-10-08 10:33 [PATCH OSSTEST] Debian: Arrange to drop "quiet" from command line of installed system Ian Campbell
@ 2015-10-08 15:52 ` Ian Jackson
  2015-10-08 15:59   ` Ian Campbell
  0 siblings, 1 reply; 3+ messages in thread
From: Ian Jackson @ 2015-10-08 15:52 UTC (permalink / raw)
  To: Ian Campbell; +Cc: xen-devel

Ian Campbell writes ("[PATCH OSSTEST] Debian: Arrange to drop "quiet" from command line of installed system"):
> By editing /etc/default/grub in a late command iff it exists.
> 
> This will effect ts-debian-{hvm,di}-install as well as
            ^^^^^^
            affect

> ts-host-install and hence effect guests as well as hosts.
                            ^^^^^^
                            affect

> The overall effect is that we will log more upon guest boot as well as
              ^^^^^^
              effect is correct

> on the initial host boot.


When something is effected it comes into being.

When something is affected, it is subject to an effect.


> 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).

OK.

Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH OSSTEST] Debian: Arrange to drop "quiet" from command line of installed system
  2015-10-08 15:52 ` Ian Jackson
@ 2015-10-08 15:59   ` Ian Campbell
  0 siblings, 0 replies; 3+ messages in thread
From: Ian Campbell @ 2015-10-08 15:59 UTC (permalink / raw)
  To: Ian Jackson; +Cc: xen-devel

On Thu, 2015-10-08 at 16:52 +0100, Ian Jackson wrote:
> Ian Campbell writes ("[PATCH OSSTEST] Debian: Arrange to drop "quiet"
> from command line of installed system"):
> > By editing /etc/default/grub in a late command iff it exists.
> > 
> > This will effect ts-debian-{hvm,di}-install as well as
>             ^^^^^^
>             affect
> 
> > ts-host-install and hence effect guests as well as hosts.
>                             ^^^^^^
>                             affect
> 
> > The overall effect is that we will log more upon guest boot as well as
>               ^^^^^^
>               effect is correct

I got one right!

Normally I'm quite careful about this one, I've no idea what happened to me
this morning...

> > on the initial host boot.
> 
> 
> When something is effected it comes into being.
> 
> When something is affected, it is subject to an effect.
> 
> 
> > 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).
> 
> OK.
> 
> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>

Thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-10-08 15:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-08 10:33 [PATCH OSSTEST] Debian: Arrange to drop "quiet" from command line of installed system Ian Campbell
2015-10-08 15:52 ` Ian Jackson
2015-10-08 15:59   ` Ian Campbell

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).