This commit is contained in:
Valeria Fadeeva 2024-11-28 00:40:07 +05:00
parent 803c1bef81
commit 2679601d43
1 changed files with 2 additions and 2 deletions

View File

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