Skip to content

Fix uid when tar folder to container#95

Merged
sergiocazzolato merged 1 commit into
mainfrom
tar_uid_fix
Jun 10, 2026
Merged

Fix uid when tar folder to container#95
sergiocazzolato merged 1 commit into
mainfrom
tar_uid_fix

Conversation

@alanmcanonical

Copy link
Copy Markdown
Collaborator

Details

  • Fix uid when tar folder to container
  • Use consistent unix-syle option

Rationale

When launching lxd container and creating tarball to send to contain with spread in corporate laptop, the tarball id will be out of container's range:

2026-06-03 11:58:04 Discarding lxd:ubuntu-24.04 (spread-2-ubuntu-24-04), cannot send project content:
-----
/bin/tar: spread.yaml: Cannot change ownership to uid 1566290747, gid 1566290747: Invalid argument
/bin/tar: tests/fips/task.yaml: Cannot change ownership to uid 1566290747, gid 1566290747: Invalid argument
/bin/tar: tests/fips: Cannot change ownership to uid 1566290747, gid 1566290747: Invalid argument
/bin/tar: tests: Cannot change ownership to uid 1566290747, gid 1566290747: Invalid argument
/bin/tar: Exiting with failure status due to previous errors
-----

Use consistent unix-syle option

Signed-off-by: Alan Moore <[email protected]>

@sergiocazzolato sergiocazzolato left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Tx

@sergiocazzolato sergiocazzolato merged commit 79e7dd9 into main Jun 10, 2026
12 of 15 checks passed
@sergiocazzolato sergiocazzolato deleted the tar_uid_fix branch June 10, 2026 13:58
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.

2 participants