@@ -74,6 +74,7 @@ copy_exec /usr/bin/file || hook_error "Unable to copy /usr/bin/file "
copy_exec /usr/lib/*/libgcc_s.so.1 || hook_error "Unable to copy /usr/lib/*/libgcc_s.so.1 "
copy_exec /usr/bin/uuidparse || hook_error "Unable to copy /usr/bin/uuidparse"
copy_exec /usr/bin/mountpoint || hook_error "Unable to copy /usr/bin/mountpoint"
+copy_exec /usr/sbin/losetup || hook_error "/usr/sbin/losetup not found"
if [ -x /usr/sbin/cryptsetup-reencrypt ]; then
copy_exec /usr/sbin/cryptsetup-reencrypt
@@ -54,6 +54,7 @@ copy_exec /usr/bin/tpm2_testparms || hook_error "Unable to copy /usr/bin/tpm2_te
copy_exec /usr/bin/basename || hook_error "Unable to copy /usr/bin/basename"
copy_exec /usr/bin/uuidparse || hook_error "Unable to copy /usr/bin/uuidparse"
copy_exec /usr/bin/mountpoint || hook_error "Unable to copy /usr/bin/mountpoint"
+copy_exec /usr/sbin/losetup || hook_error "/usr/sbin/losetup not found"
copy_exec /usr/lib/*/cryptsetup/libcryptsetup-token-systemd-tpm2.so || hook_error "/usr/lib/*/cryptsetup/libcryptsetup-token-systemd-tpm2.so not found"
if [ -x /usr/sbin/cryptsetup-reencrypt ]; then
@@ -9,7 +9,7 @@
# SPDX-License-Identifier: MIT
inherit dpkg-raw
-DEBIAN_DEPENDS = "initramfs-tools, cryptsetup, \
+DEBIAN_DEPENDS = "initramfs-tools, mount, cryptsetup, \
awk, openssl, libtss2-esys-3.0.2-0 | libtss2-esys0, \
libtss2-rc0 | libtss2-esys0, libtss2-mu0 | libtss2-esys0, \
e2fsprogs, tpm2-tools, coreutils, uuid-runtime"
- Avoids using a busybox losetup executable that doesn't support the "--sizelimit" parameter - The "--sizelimit" parameter is needed for introducing speed-up of disk reencryption with the following commit Signed-off-by: Stefan Koch <stefan-koch@siemens.com> --- .../initramfs-crypt-hook/files/encrypt_partition.clevis.hook | 1 + .../initramfs-crypt-hook/files/encrypt_partition.systemd.hook | 1 + .../initramfs-crypt-hook/initramfs-crypt-hook_0.2.bb | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-)