diff options
Diffstat (limited to 'meta/recipes-core/systemd/systemd-compat-units')
-rw-r--r-- | meta/recipes-core/systemd/systemd-compat-units/machineid.service | 16 | ||||
-rw-r--r-- | meta/recipes-core/systemd/systemd-compat-units/run-postinsts.service | 17 |
2 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd-compat-units/machineid.service b/meta/recipes-core/systemd/systemd-compat-units/machineid.service new file mode 100644 index 0000000000..f586c6d60f --- /dev/null +++ b/meta/recipes-core/systemd/systemd-compat-units/machineid.service | |||
@@ -0,0 +1,16 @@ | |||
1 | [Unit] | ||
2 | Description=Machine ID first boot configure | ||
3 | DefaultDependencies=no | ||
4 | ConditionPathExists=|!/etc/machine-id | ||
5 | After=systemd-remount-fs.service | ||
6 | Before=sysinit.target | ||
7 | |||
8 | [Service] | ||
9 | ExecStart=/bin/systemd-machine-id-setup | ||
10 | RemainAfterExit=No | ||
11 | Type=oneshot | ||
12 | StandardOutput=syslog | ||
13 | |||
14 | [Install] | ||
15 | WantedBy=basic.target | ||
16 | WantedBy=sysinit.target | ||
diff --git a/meta/recipes-core/systemd/systemd-compat-units/run-postinsts.service b/meta/recipes-core/systemd/systemd-compat-units/run-postinsts.service new file mode 100644 index 0000000000..4ebc2344cf --- /dev/null +++ b/meta/recipes-core/systemd/systemd-compat-units/run-postinsts.service | |||
@@ -0,0 +1,17 @@ | |||
1 | [Unit] | ||
2 | Description=Run pending postinsts | ||
3 | DefaultDependencies=no | ||
4 | ConditionPathExists=|/etc/rcS.d/S99run-postinsts | ||
5 | After=systemd-remount-fs.service systemd-tmpfiles-setup.service tmp.mount | ||
6 | Before=sysinit.target | ||
7 | |||
8 | [Service] | ||
9 | ExecStart=/etc/rcS.d/S99run-postinsts | ||
10 | RemainAfterExit=No | ||
11 | Type=oneshot | ||
12 | StandardOutput=syslog | ||
13 | TimeoutSec=0 | ||
14 | |||
15 | [Install] | ||
16 | WantedBy=basic.target | ||
17 | WantedBy=sysinit.target | ||