Skip to content

Commit

Permalink
Merge pull request #55 from cgwalters/run-stdin
Browse files Browse the repository at this point in the history
disk: Also pass stdin to install container
  • Loading branch information
germag committed Jul 3, 2024
2 parents 2b36f6d + fedcf86 commit 70116ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/bootc/bootc_disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ func (p *BootcDisk) runInstallContainer(quiet bool, config DiskImageConfig) (err
var exitCode int32
if !quiet {
attachOpts := new(containers.AttachOptions).WithStream(true)
if err := containers.Attach(attachCancelCtx, p.bootcInstallContainerId, nil, os.Stdout, os.Stderr, nil, attachOpts); err != nil {
if err := containers.Attach(attachCancelCtx, p.bootcInstallContainerId, os.Stdin, os.Stdout, os.Stderr, nil, attachOpts); err != nil {
return fmt.Errorf("attaching: %w", err)
}
}
Expand Down

0 comments on commit 70116ee

Please sign in to comment.