Skip to content

Commit fedcf86

Browse files
committed
disk: Also pass stdin to install container
It's only by doing this that we end up calling into the code inside `attach()` that tries to ensure the terminal size matching. Otherwise we just get the default of 80 columns (and no dynamic SIGWINCH resizing). This fixes the output in bootc-dev/bootc#655 Signed-off-by: Colin Walters <[email protected]>
1 parent a483a8b commit fedcf86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/bootc/bootc_disk.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ func (p *BootcDisk) runInstallContainer(quiet bool, config DiskImageConfig) (err
342342
var exitCode int32
343343
if !quiet {
344344
attachOpts := new(containers.AttachOptions).WithStream(true)
345-
if err := containers.Attach(attachCancelCtx, p.bootcInstallContainerId, nil, os.Stdout, os.Stderr, nil, attachOpts); err != nil {
345+
if err := containers.Attach(attachCancelCtx, p.bootcInstallContainerId, os.Stdin, os.Stdout, os.Stderr, nil, attachOpts); err != nil {
346346
return fmt.Errorf("attaching: %w", err)
347347
}
348348
}

0 commit comments

Comments
 (0)