diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2014-01-24 04:47:37 -0500 |
---|---|---|
committer | Andreas Oberritter <obi@opendreambox.org> | 2015-02-23 17:15:22 +0100 |
commit | 756dbea11678aec2eb7818125bd1ed2b53d12d67 (patch) | |
tree | 1565804d985073a0d5f19fc49aa93b6dad81550c /meta/recipes-devtools/dpkg/dpkg/dpkg-configure.service | |
parent | 67ac3e0e236c92703716b40fba34aedba38023fb (diff) | |
download | openembedded-core-contrib-756dbea11678aec2eb7818125bd1ed2b53d12d67.tar.gz |
dpkg: use systemd service for first boot configuration
Use a systemd service file for first boot configuration for dpkg
based images which has 'package-management' in its IMAGE_FEATURES.
[YOCTO #5719]
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
(cherry picked from commit 56490921d267b784118df43cbd107925c8b94200)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Diffstat (limited to 'meta/recipes-devtools/dpkg/dpkg/dpkg-configure.service')
-rw-r--r-- | meta/recipes-devtools/dpkg/dpkg/dpkg-configure.service | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/meta/recipes-devtools/dpkg/dpkg/dpkg-configure.service b/meta/recipes-devtools/dpkg/dpkg/dpkg-configure.service new file mode 100644 index 0000000000..f0b0789e4e --- /dev/null +++ b/meta/recipes-devtools/dpkg/dpkg/dpkg-configure.service @@ -0,0 +1,17 @@ +[Unit] +Description=dpkg first boot configure +DefaultDependencies=no +After=systemd-remount-fs.service systemd-tmpfiles-setup.service tmp.mount +Before=sysinit.target + +[Service] +Type=oneshot +EnvironmentFile=-@SYSCONFDIR@/default/postinst +ExecStart=-@BASE_BINDIR@/sh -c " if [ $POSTINST_LOGGING = '1' ]; then @BINDIR@/dpkg --configure -a > $LOGFILE 2>&1; else @BINDIR@/dpkg --configure -a; fi" +ExecStartPost=@BASE_BINDIR@/systemctl disable dpkg-configure.service +StandardOutput=syslog +RemainAfterExit=No + +[Install] +WantedBy=basic.target +WantedBy=sysinit.target |