debian: modify kernel version display to GRUB menuentry

Tracked-On:#8359
Signed-off-by: Min Yang <minx.yang@intel.com>
This commit is contained in:
Min Yang 2022-12-21 16:33:14 +08:00 committed by acrnsi-robot
parent d08b66e74f
commit 672f55b37c
2 changed files with 3 additions and 3 deletions

View File

@ -103,7 +103,7 @@ linux_entry ()
if [ -z "$boot_device_id" ]; then
boot_device_id="$(grub_get_device_id "${GRUB_DEVICE}")"
fi
echo "menuentry '$(echo "$os, with ${version}" | grub_quote)' ${CLASS} \$menuentry_id_option 'gnulinux-acrn-board-inspector-$boot_device_id' {"
echo "menuentry '$(echo "$os, with Linux ${version}" | grub_quote)' ${CLASS} \$menuentry_id_option 'gnulinux-acrn-board-inspector-$boot_device_id' {"
# Use ELILO's generic "efifb" when it's known to be available.
# FIXME: We need an interface to select vesafb in case efifb can't be used.

View File

@ -208,7 +208,7 @@ linux_entry ()
boot_device_id="$(grub_get_device_id "${GRUB_DEVICE}")"
fi
title="$(gettext_printf "%s with ACRN hypervisor" "${os}")"
echo "menuentry '$(echo "$title, with ${version}(${acrn_version})" | grub_quote)' ${CLASS} \$menuentry_id_option 'acrn-gnulinux-$boot_device_id' {"
echo "menuentry '$(echo "$title, with Linux ${version} (ACRN ${acrn_version})" | grub_quote)' ${CLASS} \$menuentry_id_option 'acrn-gnulinux-$boot_device_id' {"
if [ -z "${prepare_boot_cache}" ]; then
prepare_boot_cache="$(prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | grub_add_tab)"
@ -327,7 +327,7 @@ while [ "x${acrn_list}" != "x" ] ; do
else
title="$(gettext_printf "%s with ACRN hypervisor %s" "${OS}" "${acrn_version}")"
fi
echo "menuentry '$(echo "$title, with ${version}(${acrn_version})" | grub_quote)' ${CLASS} \$menuentry_id_option 'acrn-gnulinux-partitioned-${acrn_version}' {"
echo "menuentry '$(echo "$title, with Linux ${version} (ACRN ${acrn_version})" | grub_quote)' ${CLASS} \$menuentry_id_option 'acrn-gnulinux-partitioned-${acrn_version}' {"
message="$(gettext_printf "Loading ACRN hypervisor %s ..." ${acrn_version})"
cat << EOF
echo '$(echo "$message" | grub_quote)'