GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: run interactive --config targets on the terminal by davmonk · Pull Request #28 · tmiland/kernel-installer

Conversation

@davmonk

@davmonk davmonk commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Fixes #27.

Change

  • config, oldconfig, menuconfig, nconfig, localmodconfig and localyesconfig now run attached to /dev/tty instead of under run_ok. Using /dev/tty instead of the inherited stdin also works when the script is piped in.
  • Those targets are refused right after option parsing when no terminal is available (needs an interactive terminal), instead of hanging after the download and unpack.
  • The identical if/else branches of the configuration step are folded into one.
  • xconfig/gconfig are unchanged: they are GUI programs, not shown to be broken, and their toolkits are not installed by the script.

Tests

Real run in a pseudo-terminal (Linux Mint 22.3, fake root via unshare -r, kernel 6.12.113, -c menuconfig; a small Python driver plays the user):

tree result
main phase 4 at 7.9 s, then no menu on the terminal (gave up after 60 s)
this branch phase 4 at 8.2 s, menu on the terminal at 11.7 s, Esc Esc, save prompt at 13.7 s, Enter, "Configuration finished" at 13.8 s, phase 5 at 15.3 s

New tests/test_interactive_config_targets.sh runs without a terminal (setsid, stdin /dev/null) and checks that the six targets are refused and olddefconfig/defconfig are not:

tree result
main + this test 6 × FAIL: --config <target> was not refused without a terminal (exit 1)
this branch all 8 checks ok (exit 0)

I also confirmed in a 6.12.113 tree that oldconfig and config prompt on stdin, and that localmodconfig/localyesconfig run conf --oldconfig.

shellcheck 0.11.0: no new findings. The Tests workflow file is identical across the open fix PRs.

Not verified / follow-up

  • The new Tests workflow has not run on GitHub yet (awaiting workflow approval).
  • The script's own scripts/config changes (debug info off, zram defaults, --lowlatency, --custom-config) are applied after the interactive target, so they silently override choices made in the menu for those symbols. That ordering is unchanged here.

🤖 Generated with Claude Code

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@davmonk @claude
fix: run interactive --config targets on the terminal
ff747cd
menuconfig, nconfig, config, oldconfig, localmodconfig and
localyesconfig ran under run_ok, which sends stdout/stderr to the log
and draws a spinner. The menu (or the prompts for new symbols) went to
the log file and the run sat waiting for input the user could not see.

Run these targets attached to /dev/tty instead (which also works when
the script is piped in), and refuse them up front when no terminal is
available instead of hanging after the download and unpack. The two
identical branches of the config if/else are folded into one.

Adds tests/test_interactive_config_targets.sh and the Tests workflow.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@tmiland
tmiland merged commit cbb9154 into tmiland:main Oct 17, 2026
9 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@tmiland-labs

tmiland-labs commented Oct 17, 2026

Copy link
Copy Markdown

Thanks @davmonk — merged. Interactive --config targets (menuconfig and friends) now talk to the terminal, so they no longer hang silently with nothing on screen. 🙏

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@davmonk
davmonk deleted the fix/interactive-config-targets branch October 17, 2026 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

--config menuconfig (and other interactive targets) hangs with nothing on screen

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@davmonk @tmiland-labs @tmiland
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.