pkg: prevent interactive dpkg prompts in automated builds#884
pkg: prevent interactive dpkg prompts in automated builds#884igorpecovnik merged 1 commit intomainfrom
Conversation
WalkthroughThis change relocates the Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Fix "end of file on stdin at conffile prompt" errors by ensuring DEBIAN_FRONTEND=noninteractive is set for all apt-get and dpkg operations in package management functions. Changes: - Add DEBIAN_FRONTEND=noninteractive to apt-get commands in read mode - Add DEBIAN_FRONTEND=noninteractive to dpkg --configure fallbacks - Remove redundant export from desktops module (now handled centrally) This ensures non-interactive operation in all contexts including chroot environments during automated builds. Fixes conffile prompt issues (e.g., chromium master_preferences) Signed-off-by: Igor Pecovnik <igor@armbian.com>
128106a to
a5291b5
Compare
Summary
Fixes "end of file on stdin at conffile prompt" errors during automated builds by ensuring all apt-get and dpkg operations run non-interactively.
Problem
During automated builds, dpkg was prompting for conffile decisions (e.g., chromium master_preferences), causing the build to fail with "end of file on stdin at conffile prompt" errors.
Root Cause
The package management functions had inconsistent handling of
DEBIAN_FRONTEND=noninteractive:Solution
DEBIAN_FRONTEND=noninteractiveto all apt-get commands in read modeDEBIAN_FRONTEND=noninteractiveto dpkg --configure fallbacksBenefits
Test Plan