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:
Michael Shigorin 2013-06-21 22:37:21 +04:00
parent 7f6947fd13
commit fac87182c9
3 changed files with 19 additions and 0 deletions

2
features.in/oem/README Normal file
View File

@ -0,0 +1,2 @@
Эта фича обеспечивает автоматический запуск предварительной настройки,
характерный для OEM-образов.

View 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)

View 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
: