From ba054b15c3740228ba3e327c3442a9f7594a9fe8 Mon Sep 17 00:00:00 2001 From: Matt DeVillier Date: Thu, 7 Apr 2022 14:30:56 -0500 Subject: [PATCH] kexec-select-boot: use 'fold' to wrap kernel args at 80 char Prevents truncation via fbwhiptail window Signed-off-by: Matt DeVillier --- initrd/bin/kexec-select-boot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/initrd/bin/kexec-select-boot b/initrd/bin/kexec-select-boot index d0266c46..79bc1931 100755 --- a/initrd/bin/kexec-select-boot +++ b/initrd/bin/kexec-select-boot @@ -137,7 +137,7 @@ confirm_menu_option() { default_text="Make default" [[ "$CONFIG_TPM_NO_LUKS_DISK_UNLOCK" = "y" ]] && default_text="${default_text} and boot" whiptail $BG_COLOR_WARNING --clear --title "Confirm boot details" \ - --menu "Confirm the boot details for $name:\n\n$kernel \n\n" 20 120 8 \ + Confirm the boot details for $name:\n\n$(echo $kernel| fold -s -w 80) \n\n" 20 120 8 \ -- 'd' "${default_text}" 'y' "Boot one time" \ 2>/tmp/whiptail || die "Aborting boot attempt"