jhcook / packer

packer.io templates and associated code
5 stars 1 forks source link

Updates repo not properly reinstalled in fedora24 #1

Closed tom-schultz closed 7 years ago

tom-schultz commented 7 years ago

It looks like the cleanup.sh for fedora24 should be moving the updates repo back into the /etc/yum.repos.d folder, but it's not there in the vagrant box on Atlas. This is a problem because I need to install kernel-devel 4.8.4, for Virtualbox Guest Additions, but the main repo is only at 4.5.x.

jhcook commented 7 years ago

Ok, this looks like something I've missed at some point. I will quickly remove part of it as it seems incomplete. But, it should be there because the mirrors may not be in sync when it detects a change.

jhcook commented 7 years ago

I haven't been using this box as of late. Somewhere, something has gone haywire. I've rebuilt it, and it seems on initial inspection it is ok:

commit d4940e5fa43af099925fdadb5033d2ecb4dbee83
Author: Justin Cook <jhcook@gmail.com>
Date:   Wed Nov 2 17:50:15 2016 +0000

    commit a change that was causing a broken fedora24 build
$ vagrant ssh
[vagrant@fedora24-vbox ~]$ uname -a
Linux fedora24-vbox.localdomain 4.8.4-200.fc24.x86_64 #1 SMP Tue Oct 25 13:06:04 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
[vagrant@fedora24-vbox ~]$ dnf info kernel-devel
Fedora 24 - x86_64 - Updates                                          21 MB/s |  18 MB     00:00
Fedora 24 - x86_64                                                    24 MB/s |  47 MB     00:01
Last metadata expiration check: 0:00:16 ago on Wed Nov  2 17:47:40 2016.
Available Packages
Name        : kernel-devel
Arch        : x86_64
Epoch       : 0
Version     : 4.8.4
Release     : 200.fc24
Size        : 11 M
Repo        : updates
Summary     : Development package for building kernel modules to match the kernel
URL         : http://www.kernel.org/
License     : GPLv2 and Redistributable, no modification permitted
Description : This package provides kernel headers and makefiles sufficient to build modules
            : against the kernel package.
[vagrant@fedora24-vbox ~]$ lsmod | grep vbox
vboxsf                 49152  2
vboxvideo              49152  2
vboxguest             266240  3 vboxsf,vboxvideo
ttm                    94208  1 vboxvideo
drm_kms_helper        151552  1 vboxvideo
drm                   344064  5 vboxvideo,ttm,drm_kms_helper

I have pushed a new box as the same version. Please delete your cached box and reup. Thanks for letting me know.

https://atlas.hashicorp.com/jhcook/boxes/fedora24/versions/4.8.4.200

tom-schultz commented 7 years ago

Awesome, this worked. Thank you!