openssh recipe (or its appends) does not control what gets installed
into the image, only how openssh gets split into packages. To see what
gets installed you need to find the image recipe and modify that as
appropriate.

Alex

On Wed, 17 Apr 2024 at 13:56, Nitesh D via lists.yoctoproject.org
<[email protected]> wrote:
>
> Hello All,
>
> This is my first time posting in the Yocto forum, so please bear with me (I'm 
> a rookie).
>
> One of my projects requires "openssh" to be installed in the image, but with 
> all services disabled except for keeping sshdgenkeys.service running. I split 
> it into two packages, but for some odd reason, "sshdgenkeys.service" is not 
> getting installed on the image.
>
> Here's my .bbappend file for openssh:
>
> ```
> FILESEXTRAPATHS:prepend := "${THISDIR}/${BPN}:"
>
> SYSTEMD_AUTO_ENABLE:${PN}-sshd = "disable"
>
> PACKAGES =+ "${PN}-sshdgenkeys"
> SYSTEMD_PACKAGES = "${PN}-sshdgenkeys"
> SYSTEMD_SERVICE:${PN}-sshdgenkeys = "sshdgenkeys.service"
> SYSTEMD_AUTO_ENABLE:${PN}-sshdgenkeys = "enable"
>
> SRC_URI:append = " \
> file://sshd_config \
> "
>
> do_install:append () {
>     install -d ${D}${sysconfdir}/ssh
>     install -m 0644 ${WORKDIR}/sshd_config ${D}${sysconfdir}/ssh/
>     install -m 0644 ${D}${sysconfdir}/ssh/sshd_config 
> ${D}${sysconfdir}/ssh/sshd_config_readonly
> }
>
> FILES:${PN}-sshd = " \
> ${sbindir}/sshd ${sysconfdir}/init.d/sshd \
> ${systemd_system_unitdir}/sshd.socket \
> ${systemd_system_unitdir}/[email protected] \
> "
> FILES:${PN}-sshdgenkeys = " \
> ${systemd_system_unitdir}/sshdgenkeys.service \
> "
> ```
> When I flash the image on my device, only the "${PN}-sshd" package is getting 
> installed, and not "${PN}-sshdgenkeys".
>
> I would appreciate a second pair of eyes on what I might be missing here.
>
> Thanking you in advance.
>
> Cheers,
> Nitesh
>
> 
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#62947): https://lists.yoctoproject.org/g/yocto/message/62947
Mute This Topic: https://lists.yoctoproject.org/mt/105575419/21656
Mute #systemd:https://lists.yoctoproject.org/g/yocto/mutehashtag/systemd
Mute #yocto:https://lists.yoctoproject.org/g/yocto/mutehashtag/yocto
Mute #kirkstone:https://lists.yoctoproject.org/g/yocto/mutehashtag/kirkstone
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to