* Fri Feb 21 2025 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-7.sme
- fix grub loader entries from Rocky to Koozali [SME: 12898]
This commit is contained in:
parent
b70e793de0
commit
8851cf012d
@ -24,4 +24,5 @@ use esmith::Build::CreateLinks qw(:all);
|
||||
))
|
||||
{
|
||||
event_actions ( $event , 'update-grub'=>'10');
|
||||
event_actions ( $event , 'grub-fix-entries'=>'11');
|
||||
}
|
||||
|
15
root/etc/e-smith/events/actions/grub-fix-entries
Normal file
15
root/etc/e-smith/events/actions/grub-fix-entries
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
#get version
|
||||
version=$(/usr/sbin/e-smith/config getprop sysconfig ReleaseVersion)
|
||||
if [ -z "${version}" ]; then
|
||||
exit
|
||||
fi
|
||||
for filename in /boot/loader/entries/*; do
|
||||
#title Rocky Linux (0-rescue-077544bab95c4f258bba4fa6bdcc9167) 8.10 (Green Obsidian)
|
||||
#title Koozali SME Server (4.18.0-553.36.1.el8_10.x86_64) 11.0alpha1
|
||||
#title Koozali SME Server (4.18.0-553.37.1.el8_10.x86_64) 11.0alpha1
|
||||
#title Koozali SME Server (4.18.0-553.40.1.el8_10.x86_64) 11.0alpha1
|
||||
sed -i -E -e 's/^title Rocky Linux (\(.*\)) [0-9.]+ \([a-zA-Z ]*\)$/title Koozali SME Server \1 '$version'/' $filename
|
||||
done
|
||||
|
@ -4,7 +4,7 @@ Summary: smeserver module to configure grub2
|
||||
%define name smeserver-grub
|
||||
Name: %{name}
|
||||
%define version 11.0.0
|
||||
%define release 6
|
||||
%define release 7
|
||||
Version: %{version}
|
||||
Release: %{release}%{?dist}
|
||||
License: GPL
|
||||
@ -25,6 +25,9 @@ AutoReqProv: no
|
||||
Provides: e-smith-grub
|
||||
|
||||
%changelog
|
||||
* Fri Feb 21 2025 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-7.sme
|
||||
- fix grub loader entries from Rocky to Koozali [SME: 12898]
|
||||
|
||||
* Wed Jan 08 2025 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-6.sme
|
||||
- fix path for EFI grub /boot/efi/EFI/rocky [SME: 12867]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user