From 2679601d437095744d54713cf49dfc99b6efc28f Mon Sep 17 00:00:00 2001 From: Valeria Fadeeva Date: Thu, 28 Nov 2024 00:40:07 +0500 Subject: [PATCH] Update --- usr/bin/refind-menu-generator | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/bin/refind-menu-generator b/usr/bin/refind-menu-generator index 7b5bcc0..8249210 100755 --- a/usr/bin/refind-menu-generator +++ b/usr/bin/refind-menu-generator @@ -99,10 +99,10 @@ theme=$(cat "/etc/refind-menu-generator/theme.conf" | awk '{$1=$1;print}') if [ -d "$KERNEL_DIR" ]; then if [ -f "${ESP}/EFI/Linux/cmdline.txt" ]; then - cmdline=$(sed -e 's/^[[:space:]]//g' -e 's/[[:space:]]$//g' "${ESP}/EFI/Linux/cmdline.txt") + cmdline=$(sed -e 's/^[[:space:]]//g' -e 's/[[:space:]]$//g' "${ESP}/EFI/Linux/cmdline.txt" | tr '[:space:]' ' ' | tr -s ' ') elif [ -f "/etc/kernel/cmdline" ]; then - cmdline=$(sed -e 's/^[[:space:]]//g' -e 's/[[:space:]]$//g' "/etc/kernel/cmdline") + cmdline=$(sed -e 's/^[[:space:]]//g' -e 's/[[:space:]]$//g' "/etc/kernel/cmdline" | tr '[:space:]' ' ' | tr -s ' ') elif [ -f "/boot/refind_linux.conf" ]; then cmdline=$(head -n 1 < "/boot/refind_linux.conf" | sed -e 's|"Boot with standard options"||g' | awk '{$1=$1;print}' | sed -e 's/"//g')