1
0
mirror of synced 2026-04-13 23:23:41 +00:00

Fix corner cases where not the latest kernel would have been checked

This commit is contained in:
Axel Beckert
2014-09-25 23:20:07 +02:00
parent 48097cd07b
commit 4d64044f29
2 changed files with 5 additions and 1 deletions

1
debian/changelog vendored
View File

@@ -19,6 +19,7 @@ xen-tools (4.4+dev-1) UNRELEASED; urgency=low
Thanks Eric Engstrom!
+ Fix missing quoting in shell function "assert" in hooks/common.sh.
+ Fix initial configuration summary in cases where pygrub is used.
+ Fix corner cases where not the latest kernel would have been checked.
* Bump Standards-Version to 3.9.6 (no changes needed)
* Fix lintian warning depends-on-perl-modules.

View File

@@ -94,7 +94,10 @@ else
fi
fi
DOMU_KERNEL=$(basename $(ls -1 ${prefix}/boot/vmlinuz* | tail -n 1))
# Check for "ls -v" support
V=''; if ls -1 ${prefix}/boot/vmlinuz* > /dev/null 2>&1; then V=-v; fi
DOMU_KERNEL=$(basename $(ls -1 ${V} ${prefix}/boot/vmlinuz* | tail -n 1))
KERNEL_REV=$(echo $DOMU_KERNEL | sed "s/vmlinuz-//g")
DOMU_RAMDISK="initrd.img-$KERNEL_REV"
DOMU_ISSUE=$(sed -re "s/ *\\\.*//g" -e1q < ${prefix}/etc/issue)