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
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Anton Palgunov
mkimage-profiles
Commits
f44908ca
Commit
f44908ca
authored
12 years ago
by
Michael Shigorin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
proofreading of the merged commits
File contents should be correct.
parent
8233aa84
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
16 deletions
+13
-16
README
features.in/menuitem-grub/README
+3
-6
91-change-release
...in/menuitem-grub/stage2/image-scripts.d/91-change-release
+4
-7
config.mk
features.in/syslinux/config.mk
+2
-1
generate.mk
features.in/syslinux/generate.mk
+4
-2
No files found.
features.in/menuitem-grub/README
View file @
f44908ca
Эта фича изменяет пункты загрузки GRUB, в частности меняет содержимое
файла /etc/altlinux-release в соответствии с установленной переменной
MENUTITLE.
Внимание! Меняются значения altlinux-release внесенные branding-ом, в
этом ее основная задача.
Эта фича меняет содержимое файла /etc/altlinux-release в соответствии
с установленной переменной MENUTITLE, что изменяет пункты загрузки GRUB.
Применяется при необходимости перекрыть внесенный брендингом текст.
This diff is collapsed.
Click to expand it.
features.in/menuitem-grub/stage2/image-scripts.d/91-change-release
View file @
f44908ca
...
...
@@ -2,16 +2,14 @@
# create a postinstall script to some tuning
if
[
-n
"
$GLOBAL_VERBOSE
"
]
;
then
echo
"** Change
altlinux-release acci
rding to MENUITEM"
echo
"** Change
/etc/altlinux-release acco
rding to MENUITEM"
fi
>
&2
SCRIPT
=
"/usr/share/install2/postinstall.d/91-change-release"
cat
>
"
$SCRIPT
"
<<
EOF
#!/bin/sh
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'
exec_chroot sh -c 'grub-mkconfig -o /boot/grub/grub.cfg >&/dev/null ||:'
EOF
chmod
+x
"
$SCRIPT
"
\ No newline at end of file
chmod
+x
"
$SCRIPT
"
This diff is collapsed.
Click to expand it.
features.in/syslinux/config.mk
View file @
f44908ca
...
...
@@ -3,7 +3,8 @@ use/syslinux: sub/stage1
@$(call add_feature)
@$(call add,STAGE1_PACKAGES,syslinux)
@$(call try,META_SYSTEM_ID,SYSLINUX)
@$(call set,MENUITEM,ALT Linux $(IMAGE_NAME))
@$(call set,MENUITEM,ALT Linux ($(IMAGE_NAME)))
# UI is overwritten
use/syslinux/ui/%: use/syslinux
@$(call set,SYSLINUX_UI,$*)
...
...
This diff is collapsed.
Click to expand it.
features.in/syslinux/generate.mk
View file @
f44908ca
...
...
@@ -49,10 +49,12 @@ cfg = $(wildcard cfg.in/??$(1).cfg)
all: debug timeout
@### proper text branding should be implemented
@sed -i 's,@mkimage-profiles@,$(IMAGE_NAME),' $(DSTDIR)/*.cfg
@echo $(SYSLINUX_MODULES) > $(DSTDIR)/modules.list
@echo $(SYSLINUX_FILES) > $(DSTDIR)/syslinux.list
@sed -i 's,@menuitem@,$(MENUITEM),' $(DSTDIR)/*.cfg
@sed -i \
-e 's,@mkimage-profiles@,$(IMAGE_NAME),' \
-e 's,@menuitem@,$(MENUITEM),' \
$(DSTDIR)/*.cfg
# integerity check
timeout: distro
...
...
This diff is collapsed.
Click to expand it.
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