I'm running raspi-config on remote hosts non-interactively, using Ansible. Since there is no TTY attached, opening dialogs with whiptail will make the system get stuck.
Versions:
Debian: Bookworm
raspi-config: 20231216
As an example, when running raspi-config to configure the serial port:
sudo raspi-config nonint do_serial 0
...raspi-config will open a whiptail dialog:
Is it possible to prevent raspi-config from opening the dialog, so it can be non-interactively?
I had a look at the raspi-config source code but could not find anything related: https://github.com/RPi-Distro/raspi-config
