distro/rhel85: pre-load uid/gid database for edge
When building RHEL for Edge commits and a parent together with an URL was specified, add a `org.osbuild.ostree.passwd` stage which then will pre-load the uid/gid database with the data from the parent commit. This ensures that uids and gids do not change for the "child" commit.
This commit is contained in:
parent
f8c8f28ac8
commit
df30073d65
2 changed files with 6 additions and 1 deletions
|
|
@ -382,7 +382,7 @@ func (t *imageType) Manifest(customizations *blueprint.Customizations,
|
|||
}
|
||||
|
||||
var commits []ostreeCommit
|
||||
if t.bootISO && options.OSTree.Parent != "" && options.OSTree.URL != "" {
|
||||
if options.OSTree.Parent != "" && options.OSTree.URL != "" {
|
||||
commits = []ostreeCommit{{Checksum: options.OSTree.Parent, URL: options.OSTree.URL}}
|
||||
}
|
||||
return json.Marshal(
|
||||
|
|
|
|||
|
|
@ -663,6 +663,11 @@ func ostreeTreePipeline(repos []rpmmd.RepoConfig, packages []rpmmd.PackageSpec,
|
|||
p.Build = "name:build"
|
||||
|
||||
packages = append(packages, bpPackages...)
|
||||
|
||||
if options.OSTree.Parent != "" && options.OSTree.URL != "" {
|
||||
p.AddStage(osbuild2.NewOSTreePasswdStage("org.osbuild.source", options.OSTree.Parent))
|
||||
}
|
||||
|
||||
p.AddStage(osbuild.NewRPMStage(rpmStageOptions(repos), rpmStageInputs(packages)))
|
||||
p.AddStage(osbuild.NewFixBLSStage(&osbuild.FixBLSStageOptions{}))
|
||||
language, keyboard := c.GetPrimaryLocale()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue