mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-10 04:30:00 +00:00
systemd-compat-units: rename service to run postinst scripts
OE-Core uses run-postinsts script to trigger package configuration on first boot so the service ought to be named the same, for consistency. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
committed by
Koen Kooi
parent
ae522fe36a
commit
c8680dada5
@@ -3,7 +3,7 @@ DESCRIPTION = "Units to make systemd work better with existing sysvinit scripts"
|
|||||||
LICENSE = "MIT"
|
LICENSE = "MIT"
|
||||||
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
|
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
|
||||||
|
|
||||||
PR = "r14"
|
PR = "r15"
|
||||||
|
|
||||||
inherit allarch
|
inherit allarch
|
||||||
|
|
||||||
@@ -12,9 +12,9 @@ SRC_URI = "file://*.service"
|
|||||||
do_install() {
|
do_install() {
|
||||||
install -d ${D}${base_libdir}/systemd/system/basic.target.wants
|
install -d ${D}${base_libdir}/systemd/system/basic.target.wants
|
||||||
install -d ${D}${base_libdir}/systemd/system/sysinit.target.wants/
|
install -d ${D}${base_libdir}/systemd/system/sysinit.target.wants/
|
||||||
install -m 0644 ${WORKDIR}/opkg.service ${D}${base_libdir}/systemd/system
|
install -m 0644 ${WORKDIR}/run-postinsts.service ${D}${base_libdir}/systemd/system
|
||||||
ln -sf ../opkg.service ${D}${base_libdir}/systemd/system/basic.target.wants/
|
ln -sf ../run-postinsts.service ${D}${base_libdir}/systemd/system/basic.target.wants/
|
||||||
ln -sf ../opkg.service ${D}${base_libdir}/systemd/system/sysinit.target.wants/
|
ln -sf ../run-postinsts.service ${D}${base_libdir}/systemd/system/sysinit.target.wants/
|
||||||
|
|
||||||
install -m 0644 ${WORKDIR}/machineid.service ${D}${base_libdir}/systemd/system
|
install -m 0644 ${WORKDIR}/machineid.service ${D}${base_libdir}/systemd/system
|
||||||
ln -sf ../machineid.service ${D}${base_libdir}/systemd/system/sysinit.target.wants/
|
ln -sf ../machineid.service ${D}${base_libdir}/systemd/system/sysinit.target.wants/
|
||||||
|
|||||||
+3
-3
@@ -1,12 +1,12 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Opkg first boot configure
|
Description=Run pending postinsts
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
ConditionPathExists=|/etc/rcS.d/S98configure
|
ConditionPathExists=|/etc/rcS.d/S98run-postinsts
|
||||||
After=remount-rootfs.service
|
After=remount-rootfs.service
|
||||||
Before=sysinit.target
|
Before=sysinit.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/etc/rcS.d/S98configure
|
ExecStart=/etc/rcS.d/S98run-postinsts
|
||||||
RemainAfterExit=No
|
RemainAfterExit=No
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
StandardOutput=syslog
|
StandardOutput=syslog
|
||||||
Reference in New Issue
Block a user