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.
This commit is contained in:
zciendor 2020-05-28 08:48:32 +00:00 committed by GitHub
parent 4d62ef270d
commit f63d07e7ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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