From: Ian Campbell Date: Tue, 29 Sep 2015 09:44:53 +0000 (+0100) Subject: Debian: Uninstall flash-kernel when creating our own boot.scr X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=c24f69d32ed8db1bcaed7bfa6789d1dd6f35dfcf;p=people%2Fliuw%2Fosstest.git Debian: Uninstall flash-kernel when creating our own boot.scr 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 Acked-by: Ian Jackson --- diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm index 47d1767..05f14a4 100644 --- a/Osstest/Debian.pm +++ b/Osstest/Debian.pm @@ -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