summaryrefslogtreecommitdiffstats
path: root/debian/tests/utils/cryptroot-common
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 08:37:32 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 08:38:05 +0000
commit0c50fbfc9ef4f6c538804759ab9f6143ac2d028b (patch)
tree01c486c5a07cc3495d6d511b83dc4aa5aaaacc6e /debian/tests/utils/cryptroot-common
parentMerging upstream version 2:2.7.1. (diff)
downloadcryptsetup-0c50fbfc9ef4f6c538804759ab9f6143ac2d028b.tar.xz
cryptsetup-0c50fbfc9ef4f6c538804759ab9f6143ac2d028b.zip
Merging debian version 2:2.7.1-1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-xdebian/tests/utils/cryptroot-common5
1 files changed, 4 insertions, 1 deletions
diff --git a/debian/tests/utils/cryptroot-common b/debian/tests/utils/cryptroot-common
index a7df37f..2d73d9d 100755
--- a/debian/tests/utils/cryptroot-common
+++ b/debian/tests/utils/cryptroot-common
@@ -416,9 +416,12 @@ extract_kernel() {
fi
mkdir "$destdir"
+ mkdir "$destdir/usr" "$destdir/usr/lib"
+ ln -sT "usr/lib" "$destdir/lib"
dpkg-deb --fsys-tarfile "$APT_CACHE/archives/$KERNEL_DEB" | tar -C "$destdir" -xf- \
+ --wildcards --wildcards-match-slash \
"./boot/vmlinuz-$KERNEL_VERSION" \
- "./lib/modules/$KERNEL_VERSION"
+ "*/lib/modules/$KERNEL_VERSION"
ln -T -- "$destdir/boot/vmlinuz-$KERNEL_VERSION" "$TEMPDIR/vmlinuz-$KERNEL_VERSION"
}