From bf50ab0f4d8ec40207ad7737f4b372550f2e164b Mon Sep 17 00:00:00 2001 From: Valeria Fadeeva Date: Thu, 28 Nov 2024 00:39:47 +0500 Subject: [PATCH] Update --- usr/bin/dracut-initramfs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/bin/dracut-initramfs b/usr/bin/dracut-initramfs index 485f57a..f8653a7 100755 --- a/usr/bin/dracut-initramfs +++ b/usr/bin/dracut-initramfs @@ -140,7 +140,7 @@ function gen_image() { kernel_dir="/usr/lib/modules/$kernel_version" if [ -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')