From 7c0a5c628090acc29721cb6a4c1033b06b7e80c2 Mon Sep 17 00:00:00 2001 From: Valeria Fadeeva Date: Wed, 18 Oct 2023 13:28:20 +0500 Subject: [PATCH] Update --- usr/bin/dracut-initramfs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/usr/bin/dracut-initramfs b/usr/bin/dracut-initramfs index 581850d..464362f 100755 --- a/usr/bin/dracut-initramfs +++ b/usr/bin/dracut-initramfs @@ -141,12 +141,16 @@ function gen_image() { if [ -f "/etc/kernel/cmdline" ]; then cmdline=$(sed -e 's/^[[:space:]]//g' -e 's/[[:space:]]$//g' "/etc/kernel/cmdline") + elif [ -f "/boot/refind_linux.conf" ]; then cmdline=$(cat "/boot/refind_linux.conf" | head -n 1 | sed -e 's|"Boot with standard options"||g' | awk '{$1=$1;print}' | sed -e 's/"//g') + elif [ -f "/efi/refind_linux.conf" ]; then cmdline=$(cat "/efi/refind_linux.conf" | head -n 1 | sed -e 's|"Boot with standard options"||g' | awk '{$1=$1;print}' | sed -e 's/"//g') - elif [ -f "/boot//efi/refind_linux.conf" ]; then + + elif [ -f "/boot/efi/refind_linux.conf" ]; then cmdline=$(cat "/boot/efi/refind_linux.conf" | head -n 1 | sed -e 's|"Boot with standard options"||g' | awk '{$1=$1;print}' | sed -e 's/"//g') + else cmdline=$(sed -e 's/^[[:space:]]//g' -e 's/[[:space:]]$//g' -e 's/initrd.*$//g' "/proc/cmdline") fi