* 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:
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
|
||||
|
Reference in New Issue
Block a user