1. One way to work around this is to set DEBIAN_FRONTEND=noninteractive when running do-release-upgrade.
2. do-release-upgrade has the option to run completely non-interactively. This means no y/N prompts etc. This is done by adding `-f DistUpgradeViewNonInteractive` to the do-release-upgrade command line.
Anyways, I think we can set NEEDRESTART_MODE=a ('a' for automatic) by default, and maybe set DEBIAN_FRONTEND=noninteractive by default for DistUpgradeViewText. Currently, DistUpgradeViewText sets DEBIAN_FRONTEND=dialog by default, but reading the git history I'm not sure this is what was intended.
A couple notes I think are worth adding:
1. One way to work around this is to set DEBIAN_ FRONTEND= noninteractive when running do-release-upgrade.
2. do-release-upgrade has the option to run completely non-interactively. This means no y/N prompts etc. This is done by adding `-f DistUpgradeView NonInteractive` to the do-release-upgrade command line.
Anyways, I think we can set NEEDRESTART_MODE=a ('a' for automatic) by default, and maybe set DEBIAN_ FRONTEND= noninteractive by default for DistUpgradeView Text. Currently, DistUpgradeViewText sets DEBIAN_ FRONTEND= dialog by default, but reading the git history I'm not sure this is what was intended.