Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mkimage-profiles
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
mkimage-profiles
Commits
8233aa84
Commit
8233aa84
authored
Sep 06, 2012
by
Mike Radyuk
Committed by
Michael Shigorin
Sep 12, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added menuitem-grub feature
parent
a35b5fbc
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
1 deletion
+30
-1
test.mk
conf.d/test.mk
+1
-1
README
features.in/menuitem-grub/README
+7
-0
config.mk
features.in/menuitem-grub/config.mk
+4
-0
91-change-release
...in/menuitem-grub/stage2/image-scripts.d/91-change-release
+18
-0
No files found.
conf.d/test.mk
View file @
8233aa84
...
@@ -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)
...
...
features.in/menuitem-grub/README
0 → 100644
View file @
8233aa84
Эта фича изменяет пункты загрузки GRUB, в частности меняет содержимое
файла /etc/altlinux-release в соответствии с установленной переменной
MENUTITLE.
Внимание! Меняются значения altlinux-release внесенные branding-ом, в
этом ее основная задача.
features.in/menuitem-grub/config.mk
0 → 100644
View file @
8233aa84
use/menuitem-grub:
@$(call add_feature)
@$(call xport,MENUITEM)
\ No newline at end of file
features.in/menuitem-grub/stage2/image-scripts.d/91-change-release
0 → 100755
View file @
8233aa84
#!/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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment