TRITON-1916: port imgadm to Linux

Details

Issue Type:New Feature
Priority:4 - Normal
Status:Resolved
Created at:2019-10-04T21:59:40.014Z
Updated at:2021-01-27T17:08:57.429Z

People

Created by:Former user
Reported by:Former user
Assigned to:Todd Whiteman

Resolution

Fixed: A fix for this issue is checked into the tree and tested.
(Resolution Date: 2021-01-27T17:08:57.404Z)

Related Issues

Labels

linuxcn

Description

The cn-agent port to Linux requires imgadm. The existing imgadm is found in the src/img directory of the smartos-live repo.

This ticket is about a basic port of imgadm and required libraries and will be a fork for now. At a future time, we will consider removing imgadm from smartos-live and using the portable version (e.g. as a git submodule) in its place.

Comments

Comment by Todd Whiteman
Created at 2021-01-27T17:08:57.424Z

The basics of this work was done and is available in the "linuxcn" branch:
https://github.com/joyent/node-imgadm/tree/linuxcn

This will download "lxd" branded images from IMGAPI (also using the "linuxcn" branch) and then run an "lxc image import ..." to install the image.

Some features (like imgadm vacuum) have not been implemented.