From f63d07e7ec5b3a4a9ea240be81a70d4faa0cb24d Mon Sep 17 00:00:00 2001 From: zciendor <37557036+zciendor@users.noreply.github.com> Date: Thu, 28 May 2020 08:48:32 +0000 Subject: [PATCH] make sure cryptsetup-initramfs is installed in any case (#1991) * fix for https://github.com/armbian/build/issues/1584 Since Debian buster the final `update-initramfs` call must be made on the finished image where the final root device is mounted, else `cryptsetup-initramfs` hooks fail to detect the root device. * Merge remote-tracking branch 'upstream/master' * make sure cryptsetup-initramfs is installed in any case if CRYPTROOT_SSH_UNLOCK is configured Before Debian **bullseye**, `cryptsetup-initramfs` was a hard dependency of the `cryptsetup` package. Not anymore. Therefore we need to install `cryptsetup-initramfs` explicitly, else CRYPTROOT_SSH_UNLOCK won't work. --- lib/distributions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/distributions.sh b/lib/distributions.sh index 3dc25357f5..36e49e596c 100644 --- a/lib/distributions.sh +++ b/lib/distributions.sh @@ -26,7 +26,7 @@ install_common() >> "${DEST}"/debug/install.log 2>&1 if [[ $CRYPTROOT_SSH_UNLOCK == yes ]]; then display_alert "Installing rootfs encryption related packages" "dropbear-initramfs" "info" - chroot "${SDCARD}" /bin/bash -c "apt -y -qq --no-install-recommends install dropbear-initramfs " \ + chroot "${SDCARD}" /bin/bash -c "apt -y -qq --no-install-recommends install dropbear-initramfs cryptsetup-initramfs" \ >> "${DEST}"/debug/install.log 2>&1 fi