<?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>5597</bug_id>
          
          <creation_ts>2013-11-25 15:33:27 +0000</creation_ts>
          <short_desc>openssh: can&apos;t restart systemd services during install</short_desc>
          <delta_ts>2015-05-19 21:54:20 +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>OE-Core</product>
          <component>connectivity</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.7.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yevhen">kirgene</reporter>
          <assigned_to name="Randy Witt">randy.e.witt</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>39073</commentid>
    <comment_count>0</comment_count>
    <who name="Yevhen">kirgene</who>
    <bug_when>2013-11-25 15:33:27 +0000</bug_when>
    <thetext>I&apos;m using systemd as init system and opkg as package manager.
During installation of openssh package I&apos;m getting following errors:

* pkg_run_script: package &quot;openssh-sshd&quot; postinst script returned status 1.
* opkg_configure: openssh-sshd.postinst returned 1.

As I&apos;ve investigated the problem is in &quot;postinst&quot; script namely in the following line:

systemctl restart sshd.socket sshd@.service sshdgenkeys.service

Seems that sshd@.service can&apos;t be restarted in such way.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39127</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-11-28 15:42:11 +0000</bug_when>
    <thetext>Ross: There are various patches around on this, can you figure out what we should be doing there?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51157</commentid>
    <comment_count>2</comment_count>
    <who name="Randy Witt">randy.e.witt</who>
    <bug_when>2015-05-19 21:54:20 +0000</bug_when>
    <thetext>I tried building an image in 1.7.1 with the ssh-server-openssh feature enabled and it was successful

I also built core-image-minimal without the feature enabled and tried installing the package manually and it was successful with this output.

opkg install libcrypto1.0.0_1.0.1m-r0_core2-64.ipk libwrap0_7.6-r10_core2-64.ipk openssh-keygen_6.6p1-r0_core2-64.ipk openssh-sshd_6.6p1-r0_core2-64.ipk
Installing libcrypto1.0.0 (1.0.1m-r0) on root.
libcrypto1.0.0: unsatisfied recommendation for openssl-conf
Installing libwrap0 (7.6-r10) on root.
Installing openssh-keygen (6.6p1-r0) on root.
Installing openssh-sshd (6.6p1-r0) on root.
Running useradd commands...
NOTE: Performing useradd with [ --system --no-create-home --home-dir /var/run/sshd --shell /bin/false --user-group sshd] and 10 times of retry
Created symlink from /etc/systemd/system/sockets.target.wants/sshd.socket to /lib/systemd/system/sshd.socket.
Configuring libwrap0.
Configuring libcrypto1.0.0.
Configuring openssh-keygen.
Configuring openssh-sshd.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>