summaryrefslogtreecommitdiffstats
path: root/debian/tests/utils/cryptroot-common
diff options
context:
space:
mode:
Diffstat (limited to 'debian/tests/utils/cryptroot-common')
-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"
}