diff options
author | Samuli Piippo <samuli.piippo@theqtcompany.com> | 2015-11-09 16:01:03 +0200 |
---|---|---|
committer | Samuli Piippo <samuli.piippo@theqtcompany.com> | 2015-11-19 06:49:25 +0000 |
commit | 679567dfdc6709417f57f0497252a4315d9b3a19 (patch) | |
tree | 4f5c77b65624c7093fac0f643b984f27418f218a /recipes/virtualbox | |
parent | 2d904c40918688065bd040c988241ecf1e1e571d (diff) | |
download | meta-boot2qt-679567dfdc6709417f57f0497252a4315d9b3a19.tar.gz |
Use Systemd as the init system
Remove sysvinit from distro features and add Systemd as the default
init system. Add necessary service files to all recipes that need them.
Change-Id: I9cd4c0239fe16f35145bd3bed08e27196f30ee82
Reviewed-by: Gatis Paeglis <gatis.paeglis@theqtcompany.com>
Reviewed-by: Teemu Holappa <teemu.holappa@theqtcompany.com>
Diffstat (limited to 'recipes/virtualbox')
-rw-r--r-- | recipes/virtualbox/mount-vboxsf/mount-vboxsf.service | 12 | ||||
-rw-r--r-- | recipes/virtualbox/mount-vboxsf_4.3.30.bb | 11 |
2 files changed, 21 insertions, 2 deletions
diff --git a/recipes/virtualbox/mount-vboxsf/mount-vboxsf.service b/recipes/virtualbox/mount-vboxsf/mount-vboxsf.service new file mode 100644 index 0000000..7c7211f --- /dev/null +++ b/recipes/virtualbox/mount-vboxsf/mount-vboxsf.service | |||
@@ -0,0 +1,12 @@ | |||
1 | [Unit] | ||
2 | Description=QtSimulator Shared Mount Point | ||
3 | After=systemd-user-sessions.service | ||
4 | |||
5 | [Service] | ||
6 | Type=oneshot | ||
7 | RemainAfterExit=yes | ||
8 | ExecStart=/usr/bin/mount-vboxsf.sh start | ||
9 | ExecStop=/usr/bin/mount-vboxsf.sh stop | ||
10 | |||
11 | [Install] | ||
12 | WantedBy=multi-user.target | ||
diff --git a/recipes/virtualbox/mount-vboxsf_4.3.30.bb b/recipes/virtualbox/mount-vboxsf_4.3.30.bb index 171ba7e..e84e227 100644 --- a/recipes/virtualbox/mount-vboxsf_4.3.30.bb +++ b/recipes/virtualbox/mount-vboxsf_4.3.30.bb | |||
@@ -26,6 +26,7 @@ LIC_FILES_CHKSUM = "file://${WORKDIR}/VirtualBox-${PV}/COPYING;md5=e197d5641bb35 | |||
26 | 26 | ||
27 | SRC_URI = "http://download.virtualbox.org/virtualbox/${PV}/VirtualBox-${PV}.tar.bz2 \ | 27 | SRC_URI = "http://download.virtualbox.org/virtualbox/${PV}/VirtualBox-${PV}.tar.bz2 \ |
28 | file://mount-vboxsf.sh \ | 28 | file://mount-vboxsf.sh \ |
29 | file://mount-vboxsf.service \ | ||
29 | " | 30 | " |
30 | 31 | ||
31 | SRC_URI[md5sum] = "cc053340f88922a11ad9d4fab56557bd" | 32 | SRC_URI[md5sum] = "cc053340f88922a11ad9d4fab56557bd" |
@@ -40,12 +41,18 @@ do_compile() { | |||
40 | do_install() { | 41 | do_install() { |
41 | install -m 0755 -d ${D}${bindir}/ | 42 | install -m 0755 -d ${D}${bindir}/ |
42 | install -m 0755 mount.vboxsf ${D}${bindir}/ | 43 | install -m 0755 mount.vboxsf ${D}${bindir}/ |
44 | install -m 0755 ${WORKDIR}/mount-vboxsf.sh ${D}${bindir}/ | ||
43 | 45 | ||
44 | install -m 0755 -d ${D}${sysconfdir}/init.d | 46 | install -m 0755 -d ${D}${sysconfdir}/init.d |
45 | install -m 0755 ${WORKDIR}/mount-vboxsf.sh ${D}${sysconfdir}/init.d/ | 47 | ln -s ${bindir}/mount-vboxsf.sh ${D}${sysconfdir}/init.d/ |
48 | |||
49 | install -m 0755 -d ${D}${systemd_unitdir}/system | ||
50 | install -m 0644 ${WORKDIR}/mount-vboxsf.service ${D}${systemd_unitdir}/system/ | ||
46 | } | 51 | } |
47 | 52 | ||
48 | INITSCRIPT_NAME = "mount-vboxsf.sh" | 53 | INITSCRIPT_NAME = "mount-vboxsf.sh" |
49 | INITSCRIPT_PARAMS = "defaults 33" | 54 | INITSCRIPT_PARAMS = "defaults 33" |
50 | 55 | ||
51 | inherit update-rc.d | 56 | SYSTEMD_SERVICE_${PN} = "mount-vboxsf.service" |
57 | |||
58 | inherit update-rc.d systemd | ||