mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-29 17:28:54 +00:00
6db03b0bdd
When playing with long fbwhiptail/whiptail messages, this commit played around the long string using fold. ''' echo -e "This will replace the encrypted container content and its LUKS Disk Recovery Key.\n\nThe passphrase associated with this key will be asked from the user under the following conditions:\n 1-Every boot if no Disk Unlock Key was added to the TPM\n 2-If the TPM fails (hardware failure)\n 3-If the firmware has been tampered with/modified by the user\n\nThis process requires you to type the current LUKS Disk Recovery Key passphrase and will delete the LUKS TPM Disk Unlock Key slot, if set up, by setting a default boot LUKS key slot (1) if present.\n\nAt the next prompt, you may be asked to select which file corresponds to the LUKS device container.\n\nHit Enter to continue." | fold -w 70 -s ''' Which gave the exact output of what will be inside of the fbwhiptail prompt, fixed to 70 chars width: ''' This will replace the encrypted container content and its LUKS Disk Recovery Key. The passphrase associated with this key will be asked from the user under the following conditions: 1-Every boot if no Disk Unlock Key was added to the TPM 2-If the TPM fails (hardware failure) 3-If the firmware has been tampered with/modified by the user This process requires you to type the current LUKS Disk Recovery Key passphrase and will delete the LUKS TPM Disk Unlock Key slot, if set up, by setting a default boot LUKS key slot (1) if present. At the next prompt, you may be asked to select which file corresponds to the LUKS device container. Hit Enter to continue. ''' Therefore, for long prompts in the future, one can just deal with "\n 1-" alignments to be respected in prompts and have fold deal with cutting the length of strings properly. Signed-off-by: Thierry Laurion <insurgo@riseup.net>
24 lines
759 B
Makefile
24 lines
759 B
Makefile
# ZSTD is always included, unless explicitly turned off
|
|
# Needed by initrd/bin/unpack_initramfs.sh under LUKS TPM Disk Unlock Key setup
|
|
CONFIG_ZSTD ?= y
|
|
modules-$(CONFIG_ZSTD) += zstd
|
|
|
|
zstd_version := 1.5.5
|
|
zstd_dir := zstd-$(zstd_version)
|
|
zstd_tar := zstd-$(zstd_version).tar.gz
|
|
zstd_url := https://github.com/facebook/zstd/releases/download/v$(zstd_version)/$(zstd_tar)
|
|
zstd_hash := 9c4396cc829cfae319a6e2615202e82aad41372073482fce286fac78646d3ee4
|
|
|
|
zstd_configure := true
|
|
|
|
# Only the decompressor is built and installed, to be able to read zstd-compressed
|
|
# initramfs archives.
|
|
zstd_target := \
|
|
$(MAKE_JOBS) $(CROSS_TOOLS) -C programs CFLAGS="-g0 -Os" \
|
|
HAVE_ZLIB=0 \
|
|
HAVE_LZMA=0 \
|
|
HAVE_LZ4=0 \
|
|
zstd-decompress
|
|
|
|
zstd_output := programs/zstd-decompress
|