From: Ian Campbell <ian.campbell@citrix.com>
To: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: xen-devel@lists.xen.org
Subject: Re: [PATCH OSSTEST v7 04/15] distros: Support pvgrub for Wheezy too.
Date: Mon, 6 Jul 2015 16:06:33 +0100 [thread overview]
Message-ID: <1436195193.25646.113.camel@citrix.com> (raw)
In-Reply-To: <21914.38606.239216.668903@mariner.uk.xensource.com>
On Mon, 2015-07-06 at 15:55 +0100, Ian Jackson wrote:
> Ian Campbell writes ("[PATCH OSSTEST v7 04/15] distros: Support pvgrub for Wheezy too."):
> > This requires us to install pv-grub-menu from backports, which we do
> > using a late_command.
>
> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
>
> However:
>
> > + preseed_hook_command($ho, 'late_command', $sfx, <<END);
> > +#!/bin/sh
> > +set -ex
> > +
> > +(
> > + echo
> > + echo \\\# $suite backports
> > + echo deb http://$c{DebianMirrorHost}/$c{DebianMirrorSubpath} $suite-backports main
> > +) >> /target/etc/apt/sources.list
> > +in-target apt-get update
> > +in-target apt-get install -y -t wheezy-backports pv-grub-menu
> > +END
>
> This way of saying this requires quite a lot of quoting!
I don't follow, the only thing above which I think you might be
referring to is the "\\\#". There isn't any other quoting.
Or do you mean that this needs quoting and is lacking it and that adding
it would make the here document useful? (I don't think you did)
> Have you
> considered using a nested here document ? In shell you can say
> <<'END2' or something and the content will not be subject to
> $-expansion.
All of the $ here are intended to be expanded at the Perl level.
Ian.
next prev parent reply other threads:[~2015-07-06 15:06 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-27 13:44 [PATCH OSSTEST v7 00/16] add distro domU testing flight Ian Campbell
2015-05-27 13:45 ` [PATCH OSSTEST v7 01/15] TestSupport: Add helper to fetch a URL on a host Ian Campbell
2015-07-06 14:48 ` Ian Jackson
2015-07-06 15:03 ` Ian Campbell
2015-07-06 15:59 ` Ian Jackson
2015-07-06 16:24 ` Ian Campbell
2015-05-27 13:45 ` [PATCH OSSTEST v7 02/15] distros: add support for installing Debian PV guests via d-i, flight and jobs Ian Campbell
2015-07-06 14:51 ` Ian Jackson
2015-05-27 13:45 ` [PATCH OSSTEST v7 03/15] distros: support booting Debian PV (d-i installed) guests with pvgrub Ian Campbell
2015-05-27 13:45 ` [PATCH OSSTEST v7 04/15] distros: Support pvgrub for Wheezy too Ian Campbell
2015-07-06 14:55 ` Ian Jackson
2015-07-06 15:06 ` Ian Campbell [this message]
2015-07-06 15:54 ` Ian Jackson
2015-05-27 13:45 ` [PATCH OSSTEST v7 05/15] distros: support PV guest install from Debian netinst media Ian Campbell
2015-07-06 15:01 ` Ian Jackson
2015-07-07 9:29 ` Ian Campbell
2015-05-27 13:45 ` [PATCH OSSTEST v7 06/15] Test pygrub and pvgrub on the regular flights Ian Campbell
2015-05-27 13:45 ` [PATCH OSSTEST v7 07/15] distros: add branch infrastructure Ian Campbell
2015-07-06 15:04 ` Ian Jackson
2015-05-27 13:45 ` [PATCH OSSTEST v7 08/15] distros: Run one suite per day on a weekly basis Ian Campbell
2015-07-06 15:05 ` Ian Jackson
2015-05-27 13:45 ` [PATCH OSSTEST v7 09/15] Debian: Handle lack of bootloader support in d-i on ARM Ian Campbell
2015-07-06 15:07 ` Ian Jackson
2015-05-27 13:45 ` [PATCH OSSTEST v7 10/15] ts-debian-di-install: Refactor root_disk specification Ian Campbell
2015-07-06 15:07 ` Ian Jackson
2015-05-27 13:45 ` [PATCH OSSTEST v7 11/15] make-flight: refactor PV debian tests Ian Campbell
2015-07-06 15:08 ` Ian Jackson
2015-05-27 13:45 ` [PATCH OSSTEST v7 12/15] Add testing of non-LVM/phy disk backends Ian Campbell
2015-07-06 15:21 ` Ian Jackson
2015-07-06 15:53 ` Ian Campbell
2015-07-06 16:01 ` Ian Jackson
2015-07-06 16:26 ` Ian Campbell
2015-07-06 16:40 ` Ian Campbell
2015-05-27 13:45 ` [PATCH OSSTEST v7 13/15] mfi-common: Allow make-*flight to filter the set of build jobs to include Ian Campbell
2015-07-06 15:22 ` Ian Jackson
2015-07-07 9:40 ` Ian Campbell
2015-07-07 10:38 ` Ian Jackson
2015-05-27 13:45 ` [PATCH OSSTEST v7 14/15] make-distros-flight: don't bother building for XSM or libvirt Ian Campbell
2015-07-06 15:22 ` Ian Jackson
2015-05-27 13:45 ` [PATCH OSSTEST v7 15/15] make-distros-flight: Use ftp.debian.org directly Ian Campbell
2015-07-06 15:23 ` Ian Jackson
2015-07-07 9:47 ` 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=1436195193.25646.113.camel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.