<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>13821</bug_id>
          
          <creation_ts>2020-02-29 13:43:23 +0000</creation_ts>
          <short_desc>[Warrior + Zeus bug] OpenSSH package does not integrate in core-image-base build</short_desc>
          <delta_ts>2020-03-03 11:50:22 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>BitBake</product>
          <component>bitbake</component>
          <version>3.0.3</version>
          <rep_platform>BeagleBone</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Zoran Stojsavljevic">zoran.stojsavljevic</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>akuster808</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>rpjday</cc>
    
    <cc>zoran.stojsavljevic</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>Unknown (Hard to categorize)</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>86630</commentid>
    <comment_count>0</comment_count>
    <who name="Zoran Stojsavljevic">zoran.stojsavljevic</who>
    <bug_when>2020-02-29 13:43:23 +0000</bug_when>
    <thetext>As heading says: OpenSSH package does not integrate in core-image-base build

It does integrate with core-image-minimal. The local.conf used is presented here:
https://github.com/ZoranStojsavljevic/bbb-yocto/blob/master/bbb-releases/bbb-zeus/local.conf
_______

Here is the full snippet:

# BeagleBone Black
CONF_VERSION = &quot;1&quot;
PATCHRESOLVE = &quot;noop&quot;
SSTATE_DIR ?= &quot;${TOPDIR}/sstate-cache&quot;
DL_DIR ?= &quot;${TOPDIR}/downloads&quot;
TMPDIR ?= &quot;${TOPDIR}/tmp&quot;
PACKAGE_CLASSES ?= &quot;package_rpm package_deb&quot;
## Add systemd service
DISTRO_FEATURES_BACKFILL_CONSIDERED += &quot;sysvinit&quot;
VIRTUAL-RUNTIME_init_manager = &quot;systemd&quot;
VIRTUAL-RUNTIME_dev_manager = &quot;systemd&quot;
VIRTUAL-RUNTIME_initscripts = &quot;&quot;
## PACKAGECONFIG_append_pn-systemd = &quot; networkd&quot;
## mask for non-mender builds
BBMASK = &quot;meta-bbb/recipes-mender&quot;
BBMASK += &quot;meta-openembedded/meta-oe/recipes-extended/socketcan/canutils&quot;
EXTRA_IMAGE_FEATURES = &quot;debug-tweaks&quot;
CORE_IMAGE_EXTRA_INSTALL_append = &quot;openssh dhcp-libs dhcp-server dhcp-server-config dhcp-client dhcp-relay dhcp-omshell cmake libsocketcan nfs-utils rt-tests strace procps packagegroup-core-buildessential &quot;
DISTRO_FEATURES_append = &quot; nfs systemd&quot;
IMAGE_FSTYPES_append = &quot; cpio.xz&quot;
## INHERIT += &quot;extrausers&quot;
## EXTRA_USERS_PARAMS = &quot;usermod -P root root;&quot;

MACHINE ??= &quot;beaglebone&quot;
DISTRO ??= &quot;poky&quot;
BBMULTICONFIG ?= &quot;&quot;
_______

It is observed on the different architectures:
[1] Beagle Bone Black
[2] Imx-IMX8

On arm 32 and 64 bit architectures. 

This bug is present more than a year (I spotted it on Sumo, if I recall it correctly).

Please, test it for yourselves!

Thank you,
Zoran</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86635</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-03-01 17:56:09 +0000</bug_when>
    <thetext>What does &quot;does not integrate&quot; mean? Do you mean it fails to build? If so what was the error? or does it fail to boot or provide an ssh server? We need details about what actually fails please.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86636</commentid>
    <comment_count>2</comment_count>
    <who name="akuster">akuster808</who>
    <bug_when>2020-03-01 23:02:15 +0000</bug_when>
    <thetext>To add onessh server to an image, can do one of three things.


1) EXTRA_IMAGE_FEATURES += “ssh-server-openssh” 

or

2) IMAGE_FEATURES += &quot;ssh-server-openssh&quot;


You can look at the openssh package-split to find which package needs to be installed 

tmp/work/{arch}/openssh/8.2p1-r0/packages-split

if you don&apos;t want to use the FEATURES option you can append to the image install.

3) IMAGE_INSTALL_append = &quot; openssh-sshd&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86638</commentid>
    <comment_count>3</comment_count>
    <who name="Zoran Stojsavljevic">zoran.stojsavljevic</who>
    <bug_when>2020-03-02 04:31:43 +0000</bug_when>
    <thetext>&gt; What does &quot;does not integrate&quot; mean? Do you mean it fails to build?
&gt; If so what was the error? or does it fail to boot or provide an ssh
&gt; server? We need details about what actually fails please.

Sorry for providing not enough info. There is no /etc/ssh/ directory on yocto build, that&apos;s the problem.

&gt; To add onessh server to an image, can do one of three things.
&gt;
&gt; 1) EXTRA_IMAGE_FEATURES += “ssh-server-openssh”
&gt; 2) IMAGE_FEATURES += &quot;ssh-server-openssh&quot;
&gt; 3) IMAGE_INSTALL_append = &quot; openssh-sshd&quot;

Very good suggestions, thank you very much.

I&apos;ll try to find some time to try these suggestions, but it will be not too soon. Please, stay tuned.

Thank you,
Zoran</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86651</commentid>
    <comment_count>4</comment_count>
    <who name="Zoran Stojsavljevic">zoran.stojsavljevic</who>
    <bug_when>2020-03-03 11:50:22 +0000</bug_when>
    <thetext>According to another people which reported to me about this, these options solve this problem...

&gt; 1) EXTRA_IMAGE_FEATURES += “ssh-server-openssh”
&gt; 2) IMAGE_FEATURES += &quot;ssh-server-openssh&quot;
&gt; 3) IMAGE_INSTALL_append = &quot; openssh-sshd&quot;

So it is NOT a bug. I have no idea if this behaviour is documented in YOCTO manual, I hope it is!?

For the documentation purpose (to check if ssh behaviour is really documented), I&apos;ll add rpjday@crashcourse.ca email to find out the mega-manual ssh paragraph description.

Thank you all,
Zoran</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>