Skip to content

Commit

Permalink
bib: use the Linux runner for building disk images
Browse files Browse the repository at this point in the history
Distro-specific runners try to set up a build environment to satisfy
certain expectations for stages (things they might expect from a live OS
environment).  One of the things the Fedora runner does is run
`systemd-tmpfiles --create`.  This causes a lot of warnings in our new
buildroot, like the following:

    /usr/lib/tmpfiles.d/rpm-ostree-autovar.conf:31: Failed to resolve user 'rpcuser': No such process

likely because we are running in an "ostree-based" tree that isn't fully
deployed (/etc/passwd only contains root).

The Linux runner is a fallback runner that doesn't perform any
preparations.  This should be adequate for the stages we use in bib.
  • Loading branch information
achilleas-k committed Jan 25, 2024
1 parent f0eea67 commit f9b3fbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bib/cmd/bootc-image-builder/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func manifestForDiskImage(c *ManifestConfig, rng *rand.Rand) (*manifest.Manifest

mf := manifest.New()
mf.Distro = manifest.DISTRO_FEDORA
runner := &runner.Fedora{Version: 39}
runner := &runner.Linux{}
containerSources := []container.SourceSpec{
{
Source: c.Imgref,
Expand Down

0 comments on commit f9b3fbe

Please sign in to comment.