Skip to content

Fix dpk setup Oracle prereq script interactive prompt#54

Merged
kbens merged 3 commits into
stagingfrom
feature/dpk-setup-sudo-prereq
Feb 15, 2026
Merged

Fix dpk setup Oracle prereq script interactive prompt#54
kbens merged 3 commits into
stagingfrom
feature/dpk-setup-sudo-prereq

Conversation

@kbens
Copy link
Copy Markdown
Member

@kbens kbens commented Feb 15, 2026

Oracle's --prereq script has an interactive prompt that causes EOF exception when run non-interactively.

Changes:

  • Pipe "n" via shell to auto-decline the prompt
  • Use shell pipe (shell=True) instead of subprocess input parameter

Impact:

  • psa dpk setup --prereq now runs successfully in non-interactive environments
  • No user input required during execution

…r timeout

- All setup/cleanup/postcfg commands auto-prefix sudo when not root
- --prereq mode now runs _check_dpk_prerequisites before Oracle script
- New --fix flag auto-installs missing packages without prompting
- Timeout increased from 1hr to 2hr for full DPK installs
- 5 new unit tests for _check_dpk_prerequisites
Oracle's psft-dpk-setup.sh --prereq asks interactively whether to
grant non-root users access to Oracle central inventory. When run
non-interactively, stdin EOF causes an exception. Pipe "n\n" via
subprocess input to auto-decline (root via sudo needs no addition).
subprocess.run(input=) doesn't reliably pass stdin through sudo.
Use echo n | shell pipe which works correctly.
@kbens kbens merged commit 75cdad1 into staging Feb 15, 2026
@kbens kbens deleted the feature/dpk-setup-sudo-prereq branch February 15, 2026 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant