($INBOX_DIR/description missing)
 help / color / mirror / Atom feed
From: "Nitesh D" <ndivecha@granitenet.com>
To: yocto@lists.yoctoproject.org
Subject: Issue with Installing openssh Package  #kirkstone #systemd #yocto
Date: Wed, 17 Apr 2024 04:56:12 -0700	[thread overview]
Message-ID: <T7mZ.1713354972062709907.bIGS@lists.yoctoproject.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 1455 bytes --]

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}/sshd@.service \
"
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

[-- Attachment #2: Type: text/html, Size: 2580 bytes --]

             reply	other threads:[~2024-04-17 11:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-17 11:56 Nitesh D [this message]
2024-04-17 12:01 ` [yocto] Issue with Installing openssh Package #kirkstone #systemd #yocto Alexander Kanavin
2024-04-17 12:21   ` [yocto] Issue with Installing openssh Package #systemd #yocto #kirkstone Nitesh D
2024-04-17 12:25     ` Marko, Peter
2024-04-17 14:01       ` Nitesh D
2024-04-17 15:03         ` Nitesh D

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=T7mZ.1713354972062709907.bIGS@lists.yoctoproject.org \
    --to=ndivecha@granitenet.com \
    --cc=yocto@lists.yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).