Skip to content

fix: use sudo -n detection for all distros instead of hardcoding for Debian#1879

Open
badideasforsale wants to merge 1 commit into
telekom-security:masterfrom
badideasforsale:fix/debian-sudo-detection
Open

fix: use sudo -n detection for all distros instead of hardcoding for Debian#1879
badideasforsale wants to merge 1 commit into
telekom-security:masterfrom
badideasforsale:fix/debian-sudo-detection

Conversation

@badideasforsale
Copy link
Copy Markdown

@badideasforsale badideasforsale commented Apr 14, 2026

Debian systems were unconditionally set to use --ask-become-pass, added to handle Debian 13's stricter default sudo configuration. This breaks Debian-based systems with passwordless sudo (e.g. DietPi), causing the installer to hang waiting for interactive input.

The sudo -n true check already used for non-Debian systems should handle both cases correctly:

  • Default Debian 13 (sudo requires password): exits 1 → --ask-become-pass
  • Passwordless sudo (e.g. DietPi): exits 0 → --become

This PR is a small change to remove the Debian special-case and apply the same detection universally.

Debian systems were unconditionally set to use --ask-become-pass, added
to handle Debian 13's stricter default sudo configuration. This breaks
Debian-based systems with passwordless sudo (e.g. DietPi), causing the
installer to hang waiting for interactive input.

The sudo -n true check already used for non-Debian systems handles both
cases correctly:
- Default Debian 13 (sudo requires password): exits 1 -> --ask-become-pass
- Passwordless sudo (e.g. DietPi): exits 0 -> --become

Remove the Debian special-case and apply the same detection universally.
@badideasforsale badideasforsale changed the title fix: use sudo -n detection for all distros instead of Debian hardcode fix: use sudo -n detection for all distros instead of hardcoding for Debian Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants