I tried upgrading again with the /etc/molly-guard/rc changes on both an Ubuntu 18.04 LTS desktop install (logged in via GUI) and a lxc container (connected via ssh) and in neither case were the sources.list files set back to bionic.
To finish the upgrade, a restart is required.
If you select 'y' the system will be restarted.
Continue [yN] y
I: molly-guard: reboot is always molly-guarded on this system.
Please type in hostname of the machine to reboot:
Good thing I asked; I won't reboot precious-dove ...
To finish the upgrade, a restart is required.
If you select 'y' the system will be restarted.
Continue [yN] y
I: molly-guard: reboot is always molly-guarded on this system.
Please type in hostname of the machine to reboot:
Good thing I asked; I won't reboot clean-bionic-amd64 ...
I tried upgrading again with the /etc/molly-guard/rc changes on both an Ubuntu 18.04 LTS desktop install (logged in via GUI) and a lxc container (connected via ssh) and in neither case were the sources.list files set back to bionic.
To finish the upgrade, a restart is required.
If you select 'y' the system will be restarted.
Continue [yN] y
I: molly-guard: reboot is always molly-guarded on this system.
Please type in hostname of the machine to reboot:
Good thing I asked; I won't reboot precious-dove ...
=== Command detached from window (Tue Aug 4 15:22:14 2020) ===ubuntu@ precious- dove:~$ grep bionic /etc/apt/ sources. list 192.168. 10.7/ubuntu bionic main restricted 192.168. 10.7/ubuntu bionic-updates main restricted 192.168. 10.7/ubuntu bionic universe 192.168. 10.7/ubuntu bionic-updates universe 192.168. 10.7/ubuntu bionic multiverse 192.168. 10.7/ubuntu bionic-updates multiverse 192.168. 10.7/ubuntu bionic-backports main restricted universe multiverse archive. canonical. com/ubuntu bionic partner archive. canonical. com/ubuntu bionic partner 192.168. 10.7/ubuntu bionic-security main restricted 192.168. 10.7/ubuntu bionic-security universe 192.168. 10.7/ubuntu bionic-security multiverse
# deb-src http://
# deb-src http://
# deb-src http://
# deb-src http://
# deb-src http://
# deb-src http://
# deb-src http://
# deb http://
# deb-src http://
# deb-src http://
# deb-src http://
# deb-src http://
bdmurray@ clean-bionic- amd64:~ $ tail /var/log/ dist-upgrade/ screenlog. 0
To finish the upgrade, a restart is required.
If you select 'y' the system will be restarted.
Continue [yN] y
I: molly-guard: reboot is always molly-guarded on this system.
Please type in hostname of the machine to reboot:
Good thing I asked; I won't reboot clean-bionic-amd64 ...
=== Command detached from window (Tue Aug 4 08:52:24 2020) ===bdmurray@ clean-bionic- amd64:~ $ cat /etc/apt/ sources. list 192.168. 10.7/ubuntu focal main restricted universe multiverse 192.168. 10.7/ubuntu focal-updates main restricted universe multiverse archive. ubuntu. com/ubuntu bionic-proposed main restricted universe multiverse 192.168. 10.7/ubuntu focal-security main restricted universe multiverse 192.168. 10.7/ubuntu focal main restricted universe multiverse 192.168. 10.7/ubuntu focal-updates main restricted universe multiverse archive. ubuntu. com/ubuntu bionic-proposed main restricted universe multiverse 192.168. 10.7/ubuntu focal-security main restricted universe multiverse
deb http://
deb http://
# deb http://
deb http://
deb-src http://
deb-src http://
# deb-src http://
deb-src http://
Additionally, the dist-upgrader code wouldn't restore sources.list (afaict) if the reboot failed.