Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 12.04 logic to handle outdated apt cache on distro #265

Merged
merged 1 commit into from
Sep 12, 2014
Merged

Update 12.04 logic to handle outdated apt cache on distro #265

merged 1 commit into from
Sep 12, 2014

Conversation

eshamow
Copy link
Contributor

@eshamow eshamow commented Sep 11, 2014

No description provided.

@juliandunn
Copy link
Contributor

I trust that this is correct. I'm not a Ubuntu user 😁

@juliandunn juliandunn merged commit 8c6eb60 into chef:master Sep 12, 2014
juliandunn pushed a commit that referenced this pull request Sep 12, 2014
@eshamow
Copy link
Contributor Author

eshamow commented Sep 13, 2014

Nor I and I would love an experienced Ubuntu or at least Debian/apt person to make sure it's the right thing to do. The cache on the distribution disk is definitely corrupt and this is definitely a fix. I would much prefer to fix in the preseed, but I can find no way to do it that seems reasonable.

@eshamow eshamow deleted the update_1204 branch September 13, 2014 21:50
@@ -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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rereading this, I meant to ask -- what's the relationship of this to the cache fix?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@juliandunn
Copy link
Contributor

👊 Ubuntu but ok 😦

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants