Skip to content

Commit cfbe697

Browse files
supakeenachilleas-k
authored andcommitted
osbuild/tar: allow numeric owner
In a recent osbuild PR [1] an option was added to allow using numeric owners in tar archives. This is wanted because including user and group names in metadata can lead to unwanted side-effects when unpacking on a system that contains user/group names. Allow the tar stage to set this option in `images` as well. Signed-off-by: Simon de Vlieger <[email protected]>
1 parent 41914f0 commit cfbe697

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/osbuild/tar_stage.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ type TarStageOptions struct {
6060

6161
// Pass --transform=...
6262
Transform string `json:"transform,omitempty"`
63+
64+
// Pass `--numeric-owner` which omits user and group names in metadata
65+
// We often want this since name/group mapping can change the ownership
66+
// of files during extraction.
67+
NumericOwner *bool `json:"numeric-owner,omitempty"`
6368
}
6469

6570
func (TarStageOptions) isStageOptions() {}

0 commit comments

Comments
 (0)