Update 12.04 logic to handle outdated apt cache on distro

libreadline-dev and dkms come from libdevel, which seems to have mismatching hashes from what actually gets downloaded from the Ubuntu repos.

If you select these packages for install during preseed there is a hash mismatch and install bails.

However if you move them to post-install, as long as they execute before the vmtools provisioner runs, we are ok. So during the update script, I clear the inaccurate cache and refresh, then pull the requisite packages iff we are on this version of Ubuntu.

-- 
Eric Shamow
Sent with Airmail

On September 13, 2014 at 9:43:54 PM, Julian C. Dunn (notifications@github.com) wrote:

In packer/http/ubuntu-12.04/preseed.cfg:

> @@ -21,7 +21,7 @@ d-i passwd/user-uid string 900
>  d-i passwd/user-password password vagrant
>  d-i passwd/user-password-again password vagrant
>  d-i passwd/username string vagrant
> -d-i pkgsel/include string openssh-server cryptsetup build-essential libssl-dev libreadline-dev zlib1g-dev linux-source dkms nfs-common
> +d-i pkgsel/include string openssh-server cryptsetup build-essential libssl-dev zlib1g-dev linux-source nfs-common
Rereading this, I meant to ask -- what's the relationship of this to the cache fix?

—
Reply to this email directly or view it on GitHub.