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 (#62946): https://lists.yoctoproject.org/g/yocto/message/62946
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]]
-=-=-=-=-=-=-=-=-=-=-=-