This commit is contained in:
Valeria Fadeeva 2023-10-18 13:25:15 +05:00
parent ddc05c2ca5
commit 1960a080d7
3 changed files with 5 additions and 0 deletions

View File

@ -90,6 +90,10 @@ if [ -d $KERNEL_DIR ]; 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
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

View File

@ -11,6 +11,7 @@ Target = usr/lib/systemd/systemd
Target = usr/lib/systemd/boot/efi/*.efi.stub
Target = usr/share/libalpm/hooks/90-refind-menu-install.hook
Target = usr/bin/dracut-ukify
Target = usr/bin/dracut-initramfs
Target = usr/src/*/dkms.conf
[Action]