2014-08-20 21:33:17 +00:00
|
|
|
PRINC="2"
|
2014-07-14 14:06:52 +00:00
|
|
|
|
|
|
|
# We need networking to run as we have no native services yet
|
|
|
|
SYSTEMD_DISABLED_SYSV_SERVICES_remove = "networking"
|
|
|
|
|
2014-08-20 21:33:17 +00:00
|
|
|
S_THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
|
|
|
|
FILESPATH =. "${@base_set_filespath(["${S_THISDIR}/${PN}"], d)}:"
|
|
|
|
SRC_URI = "\
|
|
|
|
file://machineid.service \
|
|
|
|
file://run-postinsts.service \
|
|
|
|
file://alignment.service"
|
|
|
|
|
|
|
|
|
|
|
|
do_install_append() {
|
|
|
|
install -d ${D}${systemd_unitdir}/system/basic.target.wants
|
|
|
|
install -d ${D}${systemd_unitdir}/system/sysinit.target.wants/
|
|
|
|
|
|
|
|
install -m 0644 ${WORKDIR}/alignment.service ${D}${systemd_unitdir}/system
|
|
|
|
ln -sf ../alignment.service ${D}${systemd_unitdir}/system/basic.target.wants/
|
|
|
|
ln -sf ../alignment.service ${D}${systemd_unitdir}/system/sysinit.target.wants/
|
|
|
|
}
|