Update
This commit is contained in:
parent
9735fc5af1
commit
bf50ab0f4d
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue