From 2c036283324fdb21911ce79d82f4a177e647a932 Mon Sep 17 00:00:00 2001 From: Valeria Fadeeva Date: Wed, 18 Oct 2023 13:27:26 +0500 Subject: [PATCH] Update --- usr/bin/dracut-ukify | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/usr/bin/dracut-ukify b/usr/bin/dracut-ukify index 13b4348..74b305e 100755 --- a/usr/bin/dracut-ukify +++ b/usr/bin/dracut-ukify @@ -207,6 +207,10 @@ function gen_image() { 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 + 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