Update
This commit is contained in:
parent
efceb34092
commit
dcf690651b
|
@ -205,6 +205,8 @@ 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')
|
||||
else
|
||||
cmdline=$(sed -e 's/^[[:space:]]//g' -e 's/[[:space:]]$//g' -e 's/initrd.*$//g' "/proc/cmdline")
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue