Skip to content

Conversation

@ldevulder
Copy link
Member

The unpack-image command fails like this:

$ elemental3ctl --debug unpack-image --image registry.suse.de/devel/unifiedcore/main/totest/containers/suse/uc/longhorn:3.9-1.2 --target tmp/
INFO[0000] Starting unpack action with args: &{Image:registry.suse.de/devel/unifiedcore/main/totest/containers/suse/uc/longhorn:3.9-1.2 TargetDir:tmp/ Platform: Local:false Verify:true} 
ERRO[0009] Failed to unpack image registry.suse.de/devel/unifiedcore/main/totest/containers/suse/uc/longhorn:3.9-1.2

It works if I set --platform linux/amd64 but I think that this should be set to the host architecture by default (it still can be forced to something else with -platform).

Signed-off-by: Loic Devulder <[email protected]>
@ldevulder ldevulder requested a review from a team as a code owner November 19, 2025 20:34
unpacker := &OCI{
s: s,
verify: true,
platformRef: s.Platform().String(),
Copy link
Member Author

@ldevulder ldevulder Nov 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this line was here to set the value to the host platform by default, but it doesn't work. And anyway having it defined in the cli/cmd side is better IMO and we can see the default value with an elemental3ctl unpack-image --help.

func NewOCIUnpacker(s *sys.System, imageRef string, opts ...OCIOpt) *OCI {
unpacker := &OCI{
s: s,
verify: true,
Copy link
Member Author

@ldevulder ldevulder Nov 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The verify value is already set here to the default value true.

@ldevulder
Copy link
Member Author

ldevulder commented Nov 19, 2025

It seems that the PR broke something, I think I know why, will fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant