ALT Linux Bugzilla
– Attachment 19317 Details for
Bug 55546
grub-common: получать имя ОС из /etc/os-release вместо /etc/altlinux-release
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
Патч
0001-grub.d-10_linux.in-get-PRETTY_NAME-as-OS-name-from-e.patch (text/plain), 959 bytes, created by
Антон Мидюков
on 2025-08-07 19:56:58 MSK
(
hide
)
Description:
Патч
Filename:
MIME Type:
Creator:
Антон Мидюков
Created:
2025-08-07 19:56:58 MSK
Size:
959 bytes
patch
obsolete
>From fdbdaa0d0dcb51d20160ff2a3b6a3e3218e1b09f Mon Sep 17 00:00:00 2001 >From: Anton Midyukov <antohami@altlinux.org> >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 <antohami@altlinux.org> >--- > 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 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 55546
: 19317