20.04 autoinstall restores apt config before security updates
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
subiquity |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
Using the 20.04.1 live-server iso and providing it with a user-data as follows:
#cloud-config
autoinstall:
version: 1
proxy: http://
refresh-
storage:
layout:
name: direct
and then booting with kvm:
$ truncate -s 10G hd.img ; kvm -m 1024 -drive file=hd.
-cdrom ubuntu-
runs thru the autoinstall as expected, but logs this:
> start: subiquity/
> finish: subiquity/
> finish: subiquity/
> start: subiquity/
A simple tcpdump "host apt-cacher-ng and port 3142" shows that the initial install calls to apt use the proxy, but the final security updates go out to the internet.
Expected behavior: the apt-proxy would be used for installing the final security updates, and/or the download and install of security updates could be disabled via `autoinstall`.
Hmm this is surprising, restoring the apt configuration should just be removing the packages on the ISO as a source, the proxy should still be configured after it runs. I'll have to try on my machine and see if I can reproduce.