Commit 8233aa84 authored by Mike Radyuk's avatar Mike Radyuk Committed by Michael Shigorin

added menuitem-grub feature

parent a35b5fbc
...@@ -25,7 +25,7 @@ distro/live-gns3: distro/live-icewm ...@@ -25,7 +25,7 @@ distro/live-gns3: distro/live-icewm
distro/server-systemd: distro/server-mini use/systemd distro/server-systemd: distro/server-mini use/systemd
@$(call set,KFLAVOURS,std-def) @$(call set,KFLAVOURS,std-def)
distro/server-test: distro/server-mini distro/server-test: distro/server-mini use/menuitem-grub
@$(call set,MENUITEM,TeSt-SeRVer) @$(call set,MENUITEM,TeSt-SeRVer)
# tiny network-only server-ovz installer (stage2 comes over net too) # tiny network-only server-ovz installer (stage2 comes over net too)
......
Эта фича изменяет пункты загрузки GRUB, в частности меняет содержимое
файла /etc/altlinux-release в соответствии с установленной переменной
MENUTITLE.
Внимание! Меняются значения altlinux-release внесенные branding-ом, в
этом ее основная задача.
use/menuitem-grub:
@$(call add_feature)
@$(call xport,MENUITEM)
\ No newline at end of file
#!/bin/sh -efu
# create a postinstall script to some tuning
if [ -n "$GLOBAL_VERBOSE" ]; then
echo "** Change altlinux-release accirding to MENUITEM"
fi >&2
SCRIPT="/usr/share/install2/postinstall.d/91-change-release"
cat > "$SCRIPT" << EOF
a= . install2-init-functions
exec_chroot sh -c 'sed -i "s,^.*,$GLOBAL_MENUITEM," /etc/altlinux-release'
exec_chroot sh -c 'grub-mkconfig -o /boot/grub/grub.cfg'
EOF
chmod +x "$SCRIPT"
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment