From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: [PATCH 08/10] Debian: New host flag need-uboot-bootstr Date: Wed, 4 Sep 2013 17:58:21 +0100 Message-ID: <1378313903-10539-8-git-send-email-ian.campbell@citrix.com> References: <1378313870.17510.172.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1378313870.17510.172.camel@kazak.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: ian.jackson@eu.citrix.com Cc: Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org At the moment this only generates the necessary script for a Calxeda Midway system. It will no doubt need to be made cleverer in the future... u-boot-tools are installed unconditionally, they are harmless unless you explicitly invoke one of them --- Osstest/Debian.pm | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm index 92d97a9..91a300d 100644 --- a/Osstest/Debian.pm +++ b/Osstest/Debian.pm @@ -470,6 +470,35 @@ in-target apt-get install -f -y END } + if ( $ho->{Flags}{'need-uboot-bootscr'} ) { + my $vg = "$ho->{Name}-p0"; # host name is p0 + + $vg =~ s/-/--/g; # Escape the dashes + my $root="/dev/mapper/$vg-root"; + + preseed_hook_command($ho, 'late_command', $sfx, <\$r/boot/boot <