I’m looking at non-interactive installation/upgrade/maintenance for my system. Is it possible to run the install script non-interactively by providing pre-seed values? I know re-installing picks up existing settings, so it should be possible to provide those for a fresh installation, but the install script will still prompt to confirm a handful of settings. Is it possible to skip those questions?
I just started looking through bootstrap.sh, saw questions.sh and the first line contains a check for a NONINTERACTIVE var. I have some research to do…
The source and export load the current configuration.
If you need to override any variables, you can do so by setting and exporting those after the initial load. (This also allowed me to better resolve an IPv6 issue I’ve had on Linode where the MiaB script picks up the wrong private address.)
I initially thought it’d be enough to just set NONINTERACTIVE and the other variables would get pulled from the existing configuration, but if the values aren’t set when questions.sh is run, the script forces interaction anyway.
Sourcing the configuration and exporting the values makes them available to the setup script and no interaction is necessary.