~elementary-os/ubuntu-package-imports/ubiquity-bionic

« back to all changes in this revision

Viewing changes to data/oem-config.service

  • Committer: RabbitBot
  • Date: 2018-02-05 14:44:42 UTC
  • Revision ID: rabbitbot@elementary.io-20180205144442-vt0fvth7zus90wjh
Initial import, version 17.10.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
[Unit]
 
2
Description=End-user configuration after initial OEM installation
 
3
ConditionFileIsExecutable=/usr/sbin/oem-config-firstboot
 
4
ConditionPathExists=/dev/tty1
 
5
 
 
6
# We never want to run the oem-config job in the live environment (as is the
 
7
# case in some custom configurations) or in recovery mode.
 
8
ConditionKernelCommandLine=!boot=casper
 
9
ConditionKernelCommandLine=!single
 
10
ConditionKernelCommandLine=!rescue
 
11
ConditionKernelCommandLine=!emergency
 
12
 
 
13
[Service]
 
14
Type=oneshot
 
15
StandardInput=tty
 
16
StandardOutput=tty
 
17
StandardError=tty
 
18
TTYPath=/dev/tty1
 
19
TTYReset=yes
 
20
TTYVHangup=yes
 
21
ExecStart=/bin/sh -ec '\
 
22
    for x in $(cat /proc/cmdline); do                           \
 
23
        case $x in                                              \
 
24
            debug-oem-config) debug=--debug ;;                  \
 
25
            ubiquity/frontend=*) export frontend="${x#*=}" ;;   \
 
26
            automatic-oem-config) automatic=--automatic ;;      \
 
27
        esac;                                                   \
 
28
    done;                                                       \
 
29
    exec oem-config-firstboot $debug $automatic'
 
30
 
 
31
[Install]
 
32
WantedBy=oem-config.target