aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Zyngier <maz@kernel.org>2020-05-24 10:52:36 +0100
committerMarc Zyngier <maz@kernel.org>2020-05-24 11:01:13 +0100
commit04e4655ee6f8ae58ccf99c47babf23cf08b01d70 (patch)
tree78450cc7d56da563fd83422eb7510a05b8424bb1
parent91775f7f158f6d9351b2c17ed9d312e40025e8c2 (diff)
downloadvminstall-04e4655ee6f8ae58ccf99c47babf23cf08b01d70.tar.gz
build-cd-image: Always pick the last kernel
Fixes the Debian armhf image. Signed-off-by: Marc Zyngier <maz@kernel.org>
-rwxr-xr-xbuild-cd-image2
1 files changed, 1 insertions, 1 deletions
diff --git a/build-cd-image b/build-cd-image
index 1b058f3..f7c8f3d 100755
--- a/build-cd-image
+++ b/build-cd-image
@@ -7,7 +7,7 @@ grubcfg=$out/boot/grub/grub.cfg
mkdir $out
-vmlinuzpath=$(xorriso -dev $1 -sh_style_result on -find / -type f -name vmlinuz 2>/dev/null | cut -f2- -d '/')
+vmlinuzpath=$(xorriso -dev $1 -sh_style_result on -find / -type f -name vmlinuz 2>/dev/null | cut -f2- -d '/' | tail -1)
grubcfgpath=$(xorriso -dev $1 -sh_style_result on -find / -type f -name grub.cfg 2>/dev/null | cut -f2- -d '/' | tail -1)
if [ "$vmlinuzpath" != "" ]; then