Debian: Arrange to drop "quiet" from command line of installed system
PATCH 1/1 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 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).
--- Osstest/Debian.pm | 13 +++++++++++++ 1 file changed, 13 insertions(+)
Osstest/Debian.pm +13 -0
@@ -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);
Signature · 1 line
2.5.3
Ian Campbell writes ("[PATCH OSSTEST] Debian: Arrange to drop "quiet" from command line of installed system"):
Quoted 3 lines
By editing
/etc/default/grubin a late command iff it exists.This will effect ts-debian-{hvm,di}-install as well as
^^^^^^
affectQuoted 1 line
ts-host-install and hence effect guests as well as hosts.
^^^^^^
affectQuoted 1 line
The overall effect is that we will log more upon guest boot as well as
^^^^^^
effect is correct
Quoted 1 line
on the initial host boot.
When something is effected it comes into being.
When something is affected, it is subject to an effect.
Quoted 3 lines
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.
Quoted 8 lines · Ian Jackson
Ian Campbell writes ("[PATCH OSSTEST] Debian: Arrange to drop "quiet" from command line of installed system"):
Quoted 3 lines
By editing
/etc/default/grubin a late command iff it exists.This will effect ts-debian-{hvm,di}-install as well as
^^^^^^ affect
Quoted 7 lines
Quoted 1 line
ts-host-install and hence effect guests as well as hosts.
^^^^^^ affectQuoted 1 line
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...
Quoted 8 lines
Quoted 1 line
on the initial host boot.
When something is effected it comes into being.
When something is affected, it is subject to an effect.
Quoted 7 lines
Quoted 3 lines
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 <[email protected]>
Thanks.