From 0d40dd52ac280d39f3e0d5c6d5ad601b15d9e458 Mon Sep 17 00:00:00 2001 From: Ing Date: Sun, 1 Dec 2024 17:11:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20boot.sh=20=E5=92=8C=20grub?= =?UTF-8?q?.cfg=EF=BC=8C=E4=BC=98=E5=8C=96=20MEV=20=E5=8F=98=E9=87=8F?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E9=80=BB=E8=BE=91=EF=BC=8C=E5=B9=B6=E5=9C=A8?= =?UTF-8?q?=20grub.cfg=20=E4=B8=AD=E6=B7=BB=E5=8A=A0=20MEV=20=E8=BE=93?= =?UTF-8?q?=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- files/initrd/opt/rr/boot.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/initrd/opt/rr/boot.sh b/files/initrd/opt/rr/boot.sh index f8d64a2e..43db6369 100755 --- a/files/initrd/opt/rr/boot.sh +++ b/files/initrd/opt/rr/boot.sh @@ -68,7 +68,7 @@ DT="$(readConfigKey "platforms.${PLATFORM}.dt" "${WORK_PATH}/platforms.yml")" KVER="$(readConfigKey "platforms.${PLATFORM}.productvers.\"${PRODUCTVER}\".kver" "${WORK_PATH}/platforms.yml")" KPRE="$(readConfigKey "platforms.${PLATFORM}.productvers.\"${PRODUCTVER}\".kpre" "${WORK_PATH}/platforms.yml")" -MEV="$(virt-what 2>/dev/null)" +MEV="$(virt-what 2>/dev/null | head -1)" DMI="$(dmesg 2>/dev/null | grep -i "DMI:" | head -1 | sed 's/\[.*\] DMI: //i')" CPU="$(awk -F': ' '/model name/ {print $2}' /proc/cpuinfo | uniq)" MEM="$(awk '/MemTotal:/ {printf "%.0f", $2 / 1024}' /proc/meminfo) MB" @@ -237,7 +237,7 @@ for KEY in "${!CMDLINE[@]}"; do [ -n "${VALUE}" ] && CMDLINE_LINE+="=${VALUE}" done CMDLINE_LINE=$(echo "${CMDLINE_LINE}" | sed 's/^ //') # Remove leading space -printf "%s:\n \033[1;36m%s\033[0m\n" "$(TEXT "Cmdline")" "${CMDLINE_LINE}" +printf "%s:\n\033[1;36m%s\033[0m\n" "$(TEXT "Cmdline")" "${CMDLINE_LINE}" # Check if user wants to modify at this stage function _bootwait() {