- 
cd /var/tmp - 
Determine the UUID of the latest "manta-marlin" image on updates.joyent.com.
muuid=$(updates-imgadm list name=manta-marlin --latest -H -o uuid) - 
Download directly from a separate manual download area in Manta.
curl -kO https://us-east.manta.joyent.com/Joyent_Dev/public/Manta/manta-marlin-image/$muuid.imgmanifest - 
First ensure that the origin (i.e. parent) image is installed
origin=$(json -f $muuid.imgmanifest origin) [[ -z "$origin" ]] \ || sdc-imgadm get $origin >/dev/null \ || sdc-imgadm import $origin -S https://updates.joyent.com - 
If that failed, then the separate download area doesn't have a recent image. Please log an issue.
[[ $? -ne 0 ]] && echo log an issue at https://github.com/joyent/manta/issues/ - 
If the following is interrupted, then re-run the same command to resume:
curl -kO -C - https://us-east.manta.joyent.com/Joyent_Dev/public/Manta/manta-marlin-image/$muuid.file.gz - 
Verify the download checksum
[[ $(json -f $muuid.imgmanifest | json files.0.sha1) \ == $(openssl dgst -sha1 $muuid.file.gz | awk '{print $2}') ]] \ || echo "error downloading, please delete and retry" - 
Then install this image into the DC's IMGAPI:
sdc-imgadm import -m $muuid.imgmanifest -f $muuid.file.gz - 
Import the image onto the respective CN:
imgadm import $muuid 
          Created
          October 1, 2018 20:08 
        
      - 
      
 - 
        
Save rjloura/55159c9c570e8ab7003c8b9498804a19 to your computer and use it in GitHub Desktop.  
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment