From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: [PATCH OSSTEST 1/6] Debian: Uninstall flash-kernel when creating our own boot.scr Date: Tue, 29 Sep 2015 10:44:53 +0100 Message-ID: <1443519898-24444-1-git-send-email-ian.campbell@citrix.com> References: <1443519883.16718.23.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1443519883.16718.23.camel@citrix.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, xen-devel@lists.xen.org Cc: Ian Campbell List-Id: xen-devel@lists.xenproject.org flash-kernel will run from various kernel postinst hooks and overwrite our own boot scripts. While this might be tollerable for the initial installation we don't want to risk it occuring after we have created our own boot.scr to boot xen. dpkg --purge succeeds if the package wasn't installed. This happened to show up with Jessie since it now supports the two boards in our test lab while Wheezy didn't (so flash-kernel didn't know about them and did nothing). Signed-off-by: Ian Campbell --- Osstest/Debian.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm index a158f34..f7275de 100644 --- a/Osstest/Debian.pm +++ b/Osstest/Debian.pm @@ -1106,6 +1106,8 @@ echo Booting bootz \\\${kernel_addr_r} \\\${ramdisk_addr_r}:\\\${filesize} \\\${fdt_addr} EOF +in-target dpkg --purge flash-kernel + in-target mkimage -A arm -T script -d /boot/boot.deb /boot/boot.scr.deb in-target cp /boot/boot.scr.deb /boot/boot.scr END -- 2.5.3