From fdbdaa0d0dcb51d20160ff2a3b6a3e3218e1b09f Mon Sep 17 00:00:00 2001 From: Anton Midyukov Date: Thu, 7 Aug 2025 19:46:52 +0300 Subject: [PATCH] grub.d/10_linux.in: get PRETTY_NAME as OS name from /etc/os-release /etc/os-release is standard. Signed-off-by: Anton Midyukov --- util/grub.d/10_linux.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in index dd78b3309..4c1e5ea44 100644 --- a/util/grub.d/10_linux.in +++ b/util/grub.d/10_linux.in @@ -28,8 +28,8 @@ export TEXTDOMAINDIR="@localedir@" CLASS="--class gnu-linux --class gnu --class os --class altlinux --unrestricted" -if [ -r /etc/altlinux-release ]; then - OS=`cat /etc/altlinux-release | sed 's/ (.*$//g' | sed "s, $,,"` +if [ -r /etc/os-release ]; then + OS=`sed -n -e 's/^PRETTY_NAME=//p' -- /etc/os-release |sed 's/"//g'` else OS="ALTLinux" fi -- 2.50.1