Merge ~apw/casper:main into casper:main

Proposed by Andy Whitcroft
Status: Merged
Approved by: Łukasz Zemczak
Approved revision: a4214f92fed09080c98d206e58397d22a11f9448
Merged at revision: a4214f92fed09080c98d206e58397d22a11f9448
Proposed branch: ~apw/casper:main
Merge into: casper:main
Diff against target: 27 lines (+7/-1)
2 files modified
debian/changelog (+6/-0)
debian/tests/boot (+1/-1)
Reviewer Review Type Date Requested Status
Łukasz Zemczak Approve
Review via email: mp+394748@code.launchpad.net

Commit message

Fix version handling for forward backport kernel versions; these terminate in +21.04.1 which confuses the tests.

To post a comment you must log in.
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

The new regex seems fine, and it works for both the +21.04 scenario and regular versioning.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/debian/changelog b/debian/changelog
index fd390fd..dfb8051 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
1casper (1.456) hirsute; urgency=medium
2
3 * Support kernels with "+" in the version string (LP: #1905357).
4
5 -- Andrea Righi <andrea.righi@canonical.com> Wed, 02 Dec 2020 12:04:34 +0000
6
1casper (1.455) groovy; urgency=medium7casper (1.455) groovy; urgency=medium
28
3 * Use a tmpfs in tests; overlay is not compatible with zfs.9 * Use a tmpfs in tests; overlay is not compatible with zfs.
diff --git a/debian/tests/boot b/debian/tests/boot
index 1054dd9..c0c3a27 100755
--- a/debian/tests/boot
+++ b/debian/tests/boot
@@ -29,7 +29,7 @@ set -e
2929
30basecmdline="boot=casper console=ttyS0"30basecmdline="boot=casper console=ttyS0"
3131
32kvers="$(dpkg -l linux-image-generic | awk '/^ii/ { print $3 }' | sed -e 's/\.[0-9]\+$//; s/\.\([0-9]\+\)$/-\1/')"-generic32kvers="$(dpkg -l linux-image-generic | awk '/^ii/ { print $3 }' | sed -e 's/+.*//; s/\.[0-9]\+$//; s/\.\([0-9]\+\)$/-\1/')"-generic
33kernel=$(echo /boot/vmlinu*-"$kvers")33kernel=$(echo /boot/vmlinu*-"$kvers")
3434
35mkinitramfs -o casper-initrd "$kvers"35mkinitramfs -o casper-initrd "$kvers"

Subscribers

People subscribed via source and target branches