Skip to contentSkip to conversation

busybox udhcpd service file

DISCUSSION Lukas Böhm 3 participants 5 messages Sep 30, 2015 – Oct 6, 2015

lore
Share & tools
lore
#0 lore raw

Hello,

I want to use the busybox udhcpd server in conjunction with systemd. As there is no service file included in the recipe (v1.22.1) and no udhcpd.conf I made a bbappend to add this. Unfortunatelly the service file is not added to the final image but the conf-file. My busybox_%.bbappend looks as follows:

FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

SRC_URI += " \
		file://udhcpd.conf \
		file://udhcpd.service \
	"
SYSTEMD_PACKAGES += " \
		${PN}-udhcpd \
	"

SYSTEMD_SERVICE_${PN}-udhcpd = "udhcpd.service"
FILES_${PN}-udhcpd += "${systemd_unitdir}/system/udhcpd.service ${sysconfdir}/udhcpd.conf"

do_install_append () {
install -d ${D}${systemd_unitdir}/system
install -d ${D}${sysconfdir}
install -m 0644 ${WORKDIR}/udhcpd.conf ${D}${sysconfdir}
install -m 0644 ${WORKDIR}/udhcpd.service
${D}${systemd_unitdir}/system/udhcpd.service
}
-----------------------------
The strange thing is, that the service file is installed to ${WORKDIR}/image/lib/systemd/system but not to the final image.

Any hints how to make it will be highly appreciated. Thanks

Lukas Böhm

#1 lore raw

Really no one any idea or hint? I could make it "dirty" but I would like to understand where the problem is.

Am 30.09.2015 um 09:28 schrieb Lukas Böhm:

Quoted 36 lines

Hello,

I want to use the busybox udhcpd server in conjunction with systemd. As there is no service file included in the recipe (v1.22.1) and no udhcpd.conf I made a bbappend to add this. Unfortunatelly the service file is not added to the final image but the conf-file.
My busybox_%.bbappend looks as follows:

FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

SRC_URI += " \
         file://udhcpd.conf \
         file://udhcpd.service \
     "
SYSTEMD_PACKAGES += " \
         ${PN}-udhcpd \
     "

SYSTEMD_SERVICE_${PN}-udhcpd = "udhcpd.service" FILES_${PN}-udhcpd += "${systemd_unitdir}/system/udhcpd.service ${sysconfdir}/udhcpd.conf"

do_install_append () {
   install -d ${D}${systemd_unitdir}/system
   install -d ${D}${sysconfdir}
   install -m 0644 ${WORKDIR}/udhcpd.conf ${D}${sysconfdir}
   install -m 0644 ${WORKDIR}/udhcpd.service

${D}${systemd_unitdir}/system/udhcpd.service
}
-----------------------------
The strange thing is, that the service file is installed to ${WORKDIR}/image/lib/systemd/system but not to the final image.

Any hints how to make it will be highly appreciated. Thanks

Lukas Böhm

Signature · 25 lines
Lukas Böhm                       fon:  ++49 351 26996-0
iseg Spezialelektronik GmbH      fax:  ++49 351 26996-21
Bautzner Landstr. 23             mail: [email protected]
D-01454 Radeberg OT Rossendorf   web:  www.iseg-hv.de

Geschäftsführer/Managing Director:
    Dr. Frank Gleisberg, Dr. Joachim Pöthig
Registergericht/Lower District Court:
    Amtsgericht Dresden HRB 16250
Umsatzsteuer-Identnummer / VAT Id:
    DE 812 50 89 42

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
Informationen. Wenn Sie nicht der richtige Adressat sind oder
diese E-Mail irrtümlich erhalten haben, informieren Sie bitte
sofort den Absender und vernichten Sie diese Mail.
Das unerlaubte Kopieren sowie die unbefugte Weitergabe
dieser Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged
information. If you are not the intended recipient
(or have received this e-mail in error) please notify the sender
immediately and destroy this e-mail. Any unauthorized copying,
disclosure or distribution of the material in this e-mail
is strictly forbidden.
#2 lore raw
In reply to Lukas Böhm
Quoted 31 lines · Lukas Böhm

Hello,

I want to use the busybox udhcpd server in conjunction with systemd. As there is no service file included in the recipe (v1.22.1) and no udhcpd.conf I made a bbappend to add this. Unfortunatelly the service file is not added to the final image but the conf-file.
My busybox_%.bbappend looks as follows:

FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

SRC_URI += " \
                file://udhcpd.conf \
                file://udhcpd.service \
        "
SYSTEMD_PACKAGES += " \
                ${PN}-udhcpd \
        "

SYSTEMD_SERVICE_${PN}-udhcpd = "udhcpd.service" FILES_${PN}-udhcpd += "${systemd_unitdir}/system/udhcpd.service ${sysconfdir}/udhcpd.conf"

do_install_append () {
install -d ${D}${systemd_unitdir}/system
install -d ${D}${sysconfdir}
install -m 0644 ${WORKDIR}/udhcpd.conf ${D}${sysconfdir} install -m 0644 ${WORKDIR}/udhcpd.service
${D}${systemd_unitdir}/system/udhcpd.service
}
-----------------------------
The strange thing is, that the service file is installed to ${WORKDIR}/image/lib/systemd/system but not to the final image.

Quoted 1 line

Any hints how to make it will be highly appreciated.

Did you inherit systemd ?

Quoted 9 lines

Thanks

Lukas Böhm

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

#3 lore raw

I would suggest you to setup build history and look files installed by busybox package.

2015-10-05 13:13 GMT-03:00 Khem Raj <[email protected]>:

Quoted 9 lines · Lukas Böhm
Quoted 8 lines

Hello,

I want to use the busybox udhcpd server in conjunction with systemd. As there is no service file included in the recipe (v1.22.1) and no udhcpd.conf I made a bbappend to add this. Unfortunatelly the service file is not added to the final image but the conf-file.
My busybox_%.bbappend looks as follows:

Quoted 5 lines
Quoted 5 lines

FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

SRC_URI += " \
                file://udhcpd.conf \
                file://udhcpd.service \
        "

I don't really understand what you said. The udhcpd.conf file was installed on image but not
the udhcpd.service file? Is that right? Can you check if busybox already ships udhcpd.conf file?

Quoted 32 lines
Quoted 18 lines
SYSTEMD_PACKAGES += " \
                ${PN}-udhcpd \
        "

SYSTEMD_SERVICE_${PN}-udhcpd = "udhcpd.service" FILES_${PN}-udhcpd += "${systemd_unitdir}/system/udhcpd.service ${sysconfdir}/udhcpd.conf"

do_install_append () {
install -d ${D}${systemd_unitdir}/system
install -d ${D}${sysconfdir}
install -m 0644 ${WORKDIR}/udhcpd.conf ${D}${sysconfdir} install -m 0644 ${WORKDIR}/udhcpd.service
${D}${systemd_unitdir}/system/udhcpd.service
}
-----------------------------
The strange thing is, that the service file is installed to ${WORKDIR}/image/lib/systemd/system but not to the final image.

Quoted 1 line

Any hints how to make it will be highly appreciated.

Did you inherit systemd ?

Quoted 9 lines

Thanks

Lukas Böhm

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

Quoted 5 lines

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

Cheers,

Signature · 2 lines
"Do or do not. There is no try"
  Yoda Master
#4 lore raw

Hello and thanks for the answers!

Am 05.10.2015 um 19:10 schrieb Daniel.:

Quoted 3 lines

I would suggest you to setup build history and look files installed by busybox package.

Ok, I did: buildhistory/.../busybox/busybox-udhcpd/latest lists all the wished files:
PV = 1.22.1
PR = r32
RPROVIDES =
RDEPENDS =
RRECOMMENDS =
PKGSIZE = 325
FILES = /etc/init.d/busybox-udhcpd /lib/systemd/system/udhcpd.service /etc/udhcpd.conf /lib/systemd/system/udhcpd.service FILELIST = /etc/udhcpd.conf /lib/systemd/system/udhcpd.service

Quoted 15 lines

2015-10-05 13:13 GMT-03:00 Khem Raj <[email protected]>:

Quoted 9 lines · Lukas Böhm
Quoted 8 lines

Hello,

I want to use the busybox udhcpd server in conjunction with systemd. As there is no service file included in the recipe (v1.22.1) and no udhcpd.conf I made a bbappend to add this. Unfortunatelly the service file is not added to the final image but the conf-file.
My busybox_%.bbappend looks as follows:

Quoted 5 lines
Quoted 5 lines

FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

SRC_URI += " \
                 file://udhcpd.conf \
                 file://udhcpd.service \
         "
Quoted 5 lines

I don't really understand what you said. The udhcpd.conf file was installed on image but not
the udhcpd.service file? Is that right? Can you check if busybox already ships udhcpd.conf file?

Yes, you understand that right. But no, busybox does not ship with udhcpd.conf. At least not in my case with systemd distro feature.

Quoted 18 lines
Quoted 18 lines
Quoted 18 lines
SYSTEMD_PACKAGES += " \
                 ${PN}-udhcpd \
         "

SYSTEMD_SERVICE_${PN}-udhcpd = "udhcpd.service" FILES_${PN}-udhcpd += "${systemd_unitdir}/system/udhcpd.service ${sysconfdir}/udhcpd.conf"

do_install_append () {
   install -d ${D}${systemd_unitdir}/system
   install -d ${D}${sysconfdir}
   install -m 0644 ${WORKDIR}/udhcpd.conf ${D}${sysconfdir}
   install -m 0644 ${WORKDIR}/udhcpd.service

${D}${systemd_unitdir}/system/udhcpd.service
}
-----------------------------
The strange thing is, that the service file is installed to ${WORKDIR}/image/lib/systemd/system but not to the final image.

Quoted 3 lines
Quoted 3 lines
Quoted 1 line

Any hints how to make it will be highly appreciated.

Did you inherit systemd ?

It is inherited in busybox.inc.

Quoted 20 lines
Quoted 11 lines
Quoted 11 lines

Thanks

Lukas Böhm

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

Quoted 5 lines

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

Cheers,

Signature · 1 line
Lukas Böhm