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
Ximper Linux
mkimage-profiles
Commits
724b0cba
You need to sign in or sign up before continuing.
Commit
724b0cba
authored
Nov 06, 2020
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oem: Added ability to set alterator-setup steps
parent
bf9b26af
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
0 deletions
+27
-0
README
features.in/oem/README
+18
-0
config.mk
features.in/oem/config.mk
+1
-0
99-oem-setup
features.in/oem/rootfs/image-scripts.d/99-oem-setup
+8
-0
No files found.
features.in/oem/README
View file @
724b0cba
Эта фича обеспечивает автоматический запуск предварительной настройки,
характерный для OEM-образов.
== Переназначение шагов alterator-setup ==
Дефолтные шаги определяются в файле /etc/alterator-setup/steps.
Его дефолтное содержание:
sysconfig
notes-license
datetime
root
users
setup-finish
Для переопределения списка шагов используйте переменную OEM_STEPS.
Пример:
цель: use/oem
@$(call set,OEM_STEPS,sysconfig notes-license datetime setup-finish)
Список доступных шагов для alterator-setup находится в
/usr/share/alterator/steps/
features.in/oem/config.mk
View file @
724b0cba
...
...
@@ -8,6 +8,7 @@ use/oem: use/services use/branding
@$(call add,DEFAULT_SERVICES_ENABLE,$$(OEM_TARGET))
@$(call xport,OEM_TARGET)
@$(call xport,OEM_NO_CLEANUP)
@$(call xport,OEM_STEPS)
use/oem/vnc: use/oem use/x11-vnc use/net-eth/dhcp
@$(call add,THE_PACKAGES,alterator-setup-x11vnc)
...
...
features.in/oem/rootfs/image-scripts.d/99-oem-setup
View file @
724b0cba
...
...
@@ -13,4 +13,12 @@ echo "LANG=en_US.utf-8" >> /etc/sysconfig/i18n
[
!
"
$GLOBAL_OEM_NO_CLEANUP
"
=
yes
]
||
sed
-i
's/^REMOVE_SELF=.*/REMOVE_SELF=0/'
/etc/alterator-setup/config
# Set alterator-setup steps
if
[
-n
"
$GLOBAL_OEM_STEPS
"
]
;
then
rm
-f
/etc/alterator-setup/steps
for
OEM_STEP
in
$GLOBAL_OEM_STEPS
;
do
echo
$OEM_STEP
>>
/etc/alterator-setup/steps
done
fi
:
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