Github user pdion891 commented on the pull request:

    https://github.com/apache/cloudstack/pull/1109#issuecomment-159130294
  
    @remibergsma can you update this PR with following update:
    It still need to look for ``/dev/loop0`` inside docker to know if it can 
update the sshkey at the template creation process.
    
    right after line 87
    ```
    # if running into Docker as unprivileges, skip ssh verification as iso 
cannot be mounted due to missing loop device.
    if [ -f /.dockerinit ]; then
      if [ -e /dev/loop0 ]; then
        # it's a docker instance with privileges.
        inject_into_iso systemvm.iso $newpubkey
        [ $? -ne 0 ] && exit 5
        copy_priv_key $newprivkey
      else
        # this mean it's a docker instance, ssh key cannot be verify.
        echo "We run inside Docker, skipping ssh key insertion in systemvm.iso"
      fi
    else
      inject_into_iso systemvm.iso $newpubkey
      [ $? -ne 0 ] && exit 5
      copy_priv_key $newprivkey
    fi
    ```
    
    
    Thanks


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to