]> xenbits.xensource.com Git - people/liuw/osstest.git/commitdiff
Debian: Uninstall flash-kernel when creating our own boot.scr
authorIan Campbell <ian.campbell@citrix.com>
Tue, 29 Sep 2015 09:44:53 +0000 (10:44 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 2 Oct 2015 10:35:32 +0000 (11:35 +0100)
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 <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Osstest/Debian.pm

index 47d1767ef00eff27434e64f6ce0cfb6bf42c20b8..05f14a436fbe2ea9c164da02d7bd9d3b3e87a602 100644 (file)
@@ -1116,6 +1116,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