initial oem feature
This is an experimental and known incomplete support for the system configuration that has to be done at the first boot-up by its user since it's their choice. This draft uses systemd which has been a requirement :-/ Thanks sem@ for helping out with the somewhat tricky unit file for alterator-setup.
This commit is contained in:
parent
7f6947fd13
commit
fac87182c9
2
features.in/oem/README
Normal file
2
features.in/oem/README
Normal file
@ -0,0 +1,2 @@
|
||||
Эта фича обеспечивает автоматический запуск предварительной настройки,
|
||||
характерный для OEM-образов.
|
5
features.in/oem/config.mk
Normal file
5
features.in/oem/config.mk
Normal file
@ -0,0 +1,5 @@
|
||||
use/oem: use/services use/branding
|
||||
@$(call add_feature)
|
||||
@$(call add,DEFAULT_SERVICES_ENABLE,messagebus alteratord setup)
|
||||
@$(call add,THE_PACKAGES,alterator-setup alterator-notes)
|
||||
@$(call add,THE_BRANDING,alterator notes)
|
12
features.in/oem/rootfs/image-scripts.d/99-oem-setup
Executable file
12
features.in/oem/rootfs/image-scripts.d/99-oem-setup
Executable file
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
# this breaks the default configuration on intent
|
||||
# so that alterator-setup can run predictably
|
||||
|
||||
TARGET=/lib/systemd/system/setup.target
|
||||
|
||||
[ ! -s "$TARGET" ] ||
|
||||
ln -s "$TARGET" /etc/systemd/system/default.target
|
||||
|
||||
echo "LANG=en_US.utf-8" >> /etc/sysconfig/i18n
|
||||
|
||||
:
|
Loading…
Reference in New Issue
Block a user