This commit is contained in:
Valeria Fadeeva 2024-11-28 00:39:59 +05:00
parent 8f7af4633e
commit 26d9e63dcb
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ function gen_image() {
kernel_dir="/usr/lib/modules/$kernel_version" kernel_dir="/usr/lib/modules/$kernel_version"
if [ -f "/etc/kernel/cmdline" ]; then 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 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') cmdline=$(head -n 1 < "/boot/refind_linux.conf" | sed -e 's|"Boot with standard options"||g' | awk '{$1=$1;print}' | sed -e 's/"//g')