Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions pkg/build/builder/daemonless.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,13 @@ func buildDaemonlessImage(sc types.SystemContext, store storage.Store, isolation
// in runtime-tools's generator logic.
seccompProfilePath := "/usr/share/containers/seccomp.json"

// If we have /dev/kvm, pass it down to the build process since it likely means
// that it was allocated to us with that expectation.
devices := []string{}
if _, err := os.Stat("/dev/kvm"); err == nil {
devices = append(devices, "/dev/kvm")
}

options := imagebuildah.BuildOptions{
ContextDirectory: contextDir,
PullPolicy: pullPolicy,
Expand Down Expand Up @@ -334,6 +341,7 @@ func buildDaemonlessImage(sc types.SystemContext, store storage.Store, isolation
MaxPullPushRetries: DefaultPushOrPullRetryCount,
PullPushRetryDelay: DefaultPushOrPullRetryDelay,
SkipUnusedStages: types.OptionalBoolFalse,
Devices: devices,
}

if os.Getenv("BUILDAH_QUIET") == "true" {
Expand Down