Merge ~mkukri/ubuntu/+source/cryptsetup:merge into ubuntu/+source/cryptsetup:ubuntu/devel

Proposed by Mate Kukri
Status: Superseded
Proposed branch: ~mkukri/ubuntu/+source/cryptsetup:merge
Merge into: ubuntu/+source/cryptsetup:ubuntu/devel
Diff against target: 119 lines (+55/-9) (has conflicts)
5 files modified
debian/changelog (+47/-0)
debian/initramfs/hooks/cryptroot (+2/-2)
debian/tests/cryptroot-legacy.d/mock (+1/-1)
debian/tests/utils/init (+1/-1)
debian/tests/utils/mkinitramfs (+4/-5)
Conflict in debian/changelog
Reviewer Review Type Date Requested Status
Simon Quigley (community) Needs Fixing
Review via email: mp+457877@code.launchpad.net

This proposal has been superseded by a proposal from 2024-01-04.

Commit message

Merge with Debian sid. Rebased the previously split Ubuntu changes.

To post a comment you must log in.
Revision history for this message
Simon Quigley (tsimonq2) wrote :

would you mind also submitting this against debian/sid for a cleaner review?

may be personal preference :)

review: Needs Fixing

Unmerged commits

5092a32... by Mate Kukri

changelog

8728b71... by Mate Kukri

update-maintainer

4b610e5... by Mate Kukri

reconstruct-changelog

3ee1d3e... by Mate Kukri

merge-changelogs

10022f1... by Mate Kukri

  * Support zstd compressed modules for the self test.

f871147... by Mate Kukri

  * Compile-in support for a FIPS mode. LP: #2032659

2824619... by Vladimir Petko

Fix cryptroot-unlock for busybox compatibility.

45003f4... by Vladimir Petko

Fix warning and error when running on ZFS on root
      - d/functions: Return an empty devno for ZFS devices as they don't have
        major:minor device numbers.
      - d/initramfs/hooks/cryptroot: Ignore and don't print an error message
        when devices don't have a devno.

c537f63... by Vladimir Petko

debian/control:
      + Recommend plymouth.
      + Depend on busybox-initramfs instead of busybox | busybox-static.
      + Move cryptsetup-initramfs back to cryptsetup's Recommends.
      + Do not build cryptsetup-suspend binary package on i386.

12d5635... by Vladimir Petko

    - Fix cryptroot-* autopkgtests on Ubuntu. (LP: #1983522)
      + debian/tests/utils/mock.pm: return from consume() function if select()
        times out or fails
      + debian/tests/utils/cryptroot-common: fix apt source and kernel package
        names for Ubuntu
      + debian/tests/cryptroot-sysvinit.d: use systemd-sysv init for Ubuntu
        cryptroot-sysvinit package test
      + debian/tests/cryptroot-nested.d: fix cryptsetup-nested test, add
        workaround for LP1831747 by adding a e2fsprogs dependency
      + debian/tests/initramfs-hook: fix test's initramfs layout for Ubuntu and
        allow blowfish test use 64Mb of provisioned space (drop --size)
      + debian/tests/control: disable cryptdisks test

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index c02f499..0847ed2 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,50 @@
6+<<<<<<< debian/changelog
7+=======
8+cryptsetup (2:2.6.1-6ubuntu1) noble; urgency=medium
9+
10+ * Merge with Debian unstable. Remaining changes:
11+ - Support zstd compressed modules for the self test.
12+ - Compile-in support for a FIPS mode. LP #2032659
13+ - debian/control:
14+ + Recommend plymouth.
15+ + Depend on busybox-initramfs instead of busybox | busybox-static.
16+ + Move cryptsetup-initramfs back to cryptsetup's Recommends.
17+ + Do not build cryptsetup-suspend binary package on i386.
18+ - Fix cryptroot-unlock for busybox compatibility.
19+ - Fix warning and error when running on ZFS on root
20+ + d/functions: Return an empty devno for ZFS devices as they don't have
21+ major:minor device numbers.
22+ + d/initramfs/hooks/cryptroot: Ignore and don't print an error message
23+ when devices don't have a devno.
24+ - Fix cryptroot-* autopkgtests on Ubuntu. (LP #1983522)
25+ + debian/tests/utils/mock.pm: return from consume() function if select()
26+ times out or fails
27+ + debian/tests/utils/cryptroot-common: fix apt source and kernel package
28+ names for Ubuntu
29+ + debian/tests/cryptroot-sysvinit.d: use systemd-sysv init for Ubuntu
30+ cryptroot-sysvinit package test
31+ + debian/tests/cryptroot-nested.d: fix cryptsetup-nested test, add
32+ workaround for LP1831747 by adding a e2fsprogs dependency
33+ + debian/tests/initramfs-hook: fix test's initramfs layout for Ubuntu and
34+ allow blowfish test use 64Mb of provisioned space (drop --size)
35+ + debian/tests/control: disable cryptdisks test
36+
37+ -- Mate Kukri <mate.kukri@canonical.com> Wed, 03 Jan 2024 10:38:16 +0000
38+
39+cryptsetup (2:2.6.1-6) unstable; urgency=medium
40+
41+ [ Kevin Locke ]
42+ * cryptsetup-initramfs: Add support from compressed kernel modules.
43+ (Closes: #1036049, #1057441)
44+
45+ [ Guilhem Moulin ]
46+ * d/tests: Replace `passwd --delete` with `busybox passwd -d`.
47+ * add_modules(): Change suffix drop logic to match initramfs-tools.
48+ * Fix DEP-8 tests with kernels shipping compressed modules.
49+
50+ -- Guilhem Moulin <guilhem@debian.org> Tue, 05 Dec 2023 17:48:58 +0100
51+
52+>>>>>>> debian/changelog
53 cryptsetup (2:2.6.1-5ubuntu1) noble; urgency=medium
54
55 * Merge with Debian unstable. Remaining changes:
56diff --git a/debian/initramfs/hooks/cryptroot b/debian/initramfs/hooks/cryptroot
57index eda5fdd..87a3589 100644
58--- a/debian/initramfs/hooks/cryptroot
59+++ b/debian/initramfs/hooks/cryptroot
60@@ -268,8 +268,8 @@ populate_CRYPTO_MODULES() {
61 add_modules() {
62 local glob="$1" found=n
63 shift
64- for mod in $(find -H "$@" -name "$glob.ko" -type f -printf '%f\n'); do
65- manual_add_modules "${mod%.ko}"
66+ for mod in $(find -H "$@" -name "$glob.ko*" -type f -printf '%f\n'); do
67+ manual_add_modules "${mod%%.*}"
68 found=y
69 done
70 [ "$found" = y ] && return 0 || return 1
71diff --git a/debian/tests/cryptroot-legacy.d/mock b/debian/tests/cryptroot-legacy.d/mock
72index 3cd8f87..b3b7d26 100755
73--- a/debian/tests/cryptroot-legacy.d/mock
74+++ b/debian/tests/cryptroot-legacy.d/mock
75@@ -17,7 +17,7 @@ die unless $out =~ m#^\s{2}[`|]-cryptvg-swap\s+lvm\s+\[SWAP\]\s*$#m;
76
77 # assume MODULES=dep won't add too many modules
78 # XXX lsinitramfs doesn't work on /initrd.img with COMPRESS=zstd, cf. #1015954
79-$out = shell(q{lsinitramfs /boot/initrd.img-`uname -r` | grep -Ec "^(usr/)?lib/modules/.*\.ko$"});
80+$out = shell(q{lsinitramfs /boot/initrd.img-`uname -r` | grep -Ec "^(usr/)?lib/modules/.*\.ko(\.[a-z]+)?$"});
81 die "$out == 0 or $out > 50" unless $out =~ s/\r?\n\z// and $out =~ /\A([0-9]+)\z/ and $out > 0 and $out <= 50;
82
83 # check cipher and key size
84diff --git a/debian/tests/utils/init b/debian/tests/utils/init
85index 331cd6f..242a0c5 100755
86--- a/debian/tests/utils/init
87+++ b/debian/tests/utils/init
88@@ -192,7 +192,7 @@ EOF
89 chroot "$ROOT" grub-install --no-floppy --modules=part_gpt /dev/vda
90 chroot "$ROOT" update-grub
91
92-chroot "$ROOT" passwd --delete root # make root account passwordless
93+chroot "$ROOT" busybox passwd -d root # make root account passwordless
94
95 # show some system info right after login to ease troubleshooting
96 cat >"$ROOT/root/.profile" <<-EOF
97diff --git a/debian/tests/utils/mkinitramfs b/debian/tests/utils/mkinitramfs
98index 557bd71..84eeb4b 100755
99--- a/debian/tests/utils/mkinitramfs
100+++ b/debian/tests/utils/mkinitramfs
101@@ -69,14 +69,13 @@ find "$EXTRACT_DIR" -name '*.zst' -exec zstd -d {} \;
102
103 depmod -ab "$EXTRACT_DIR" "$KERNEL_VERSION"
104 for kmod in virtio_console virtio_blk virtio_pci virtio_rng \
105- "$EXTRACT_DIR/lib/modules/$KERNEL_VERSION"/kernel/arch/*/crypto/*.ko \
106- "$EXTRACT_DIR/lib/modules/$KERNEL_VERSION"/kernel/crypto/*.ko \
107+ "$EXTRACT_DIR/lib/modules/$KERNEL_VERSION"/kernel/arch/*/crypto/*.ko* \
108+ "$EXTRACT_DIR/lib/modules/$KERNEL_VERSION"/kernel/crypto/*.ko* \
109 $MODULES; do
110 kmod="${kmod##*/}"
111- modprobe -aid "$EXTRACT_DIR" -S "$KERNEL_VERSION" --show-depends "${kmod%.ko}"
112-done | while read -r insmod kmod; do
113+ modprobe -aid "$EXTRACT_DIR" -S "$KERNEL_VERSION" --show-depends "${kmod%%.*}"
114+done | while read -r insmod kmod _; do
115 [ "$insmod" = "insmod" ] || continue
116- [ "$kmod" = "${kmod%.ko *}" ] || kmod="${kmod%.ko *}.ko"
117 kmod_rel="${kmod#"$EXTRACT_DIR/lib/modules/$KERNEL_VERSION/"}"
118 if [ ! -f "$kmod" ] || [ "${kmod_rel#kernel/}" = "$kmod_rel" ]; then
119 echo "Error: Unexpected modprobe output: $insmod $kmod" >&2

Subscribers

People subscribed via source and target branches