Skip to content

Commit

Permalink
Updated to Fedora 25
Browse files Browse the repository at this point in the history
Signed-off-by: Rickard von Essen <rickard.von.essen@gmail.com>
  • Loading branch information
rickard-von-essen committed Nov 22, 2016
1 parent c7f8c16 commit 191c899
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 22 deletions.
15 changes: 7 additions & 8 deletions fedora-23-i386.json → fedora-25-i386.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

{
"builders": [
{
Expand Down Expand Up @@ -141,9 +140,9 @@
"scripts": [
"scripts/common/metadata.sh",
"scripts/fedora/fix-slow-dns.sh",
"scripts/common/sshd.sh",
"scripts/fedora/build-tools.sh",
"scripts/fedora/yum.sh",
"scripts/common/sshd.sh",
"scripts/common/virtualbox.sh",
"scripts/common/vmware.sh",
"scripts/common/parallels.sh",
Expand All @@ -156,25 +155,25 @@
],
"variables": {
"arch": "32",
"box_basename": "fedora-23-i386",
"box_basename": "fedora-25-i386",
"build_timestamp": "{{isotime \"20060102150405\"}}",
"cpus": "1",
"disk_size": "40960",
"git_revision": "__unknown_git_revision__",
"headless": "",
"http_proxy": "{{env `http_proxy`}}",
"https_proxy": "{{env `https_proxy`}}",
"iso_checksum": "aa2125b6351480ce82ace619925d897d0588195a3287ef74fb203b6eb34cbccf",
"iso_checksum": "888ce3dd791854c8e0f62e9eac292a90cf9765a3f2de75b6ceb99eaa62d7f2cc",
"iso_checksum_type": "sha256",
"iso_name": "Fedora-Server-DVD-i386-23.iso",
"iso_name": "Fedora-Server-dvd-i386-25-1.3.iso",
"ks_path": "fedora-latest/ks.cfg",
"memory": "512",
"metadata": "floppy/dummy_metadata.json",
"mirror": "http://download.fedoraproject.org/pub/fedora/linux",
"mirror_directory": "releases/23/Server/i386/iso",
"name": "fedora-23-i386",
"mirror_directory": "releases/25/Server/i386/iso",
"name": "fedora-25-i386",
"no_proxy": "{{env `no_proxy`}}",
"template": "fedora-23-i386",
"template": "fedora-25-i386",
"version": "2.0.TIMESTAMP"
}
}
12 changes: 6 additions & 6 deletions fedora-23-x86_64.json → fedora-25-x86_64.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,25 +161,25 @@
],
"variables": {
"arch": "64",
"box_basename": "fedora-23",
"box_basename": "fedora-25",
"build_timestamp": "{{isotime \"20060102150405\"}}",
"cpus": "1",
"disk_size": "40960",
"git_revision": "__unknown_git_revision__",
"headless": "",
"http_proxy": "{{env `http_proxy`}}",
"https_proxy": "{{env `https_proxy`}}",
"iso_checksum": "30758dc821d1530de427c9e35212bd79b058bd4282e64b7b34ae1a40c87c05ae",
"iso_checksum": "524bd959dae09ad6fc8e0476ea478700d89f82ec5795d0b1a7b873613f3f26ac",
"iso_checksum_type": "sha256",
"iso_name": "Fedora-Server-DVD-x86_64-23.iso",
"iso_name": "Fedora-Server-dvd-x86_64-25-1.3.iso",
"ks_path": "fedora-latest/ks.cfg",
"memory": "512",
"metadata": "floppy/dummy_metadata.json",
"mirror": "http://download.fedoraproject.org/pub/fedora/linux",
"mirror_directory": "releases/23/Server/x86_64/iso",
"name": "fedora-23",
"mirror_directory": "releases/25/Server/x86_64/iso",
"name": "fedora-25",
"no_proxy": "{{env `no_proxy`}}",
"template": "fedora-23-x86_64",
"template": "fedora-25-x86_64",
"version": "2.0.TIMESTAMP"
}
}
4 changes: 2 additions & 2 deletions scripts/fedora/cleanup.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash -eux
yum -y remove gcc cpp kernel-devel kernel-headers perl
yum -y clean all
dnf -y remove gcc cpp kernel-devel kernel-headers perl
dnf -y clean all
rm -rf VBoxGuestAdditions_*.iso VBoxGuestAdditions_*.iso.?
rm -f /tmp/chef*rpm
7 changes: 1 addition & 6 deletions scripts/fedora/fix-slow-dns.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
#!/bin/bash -eux

if [[ "$PACKER_BUILDER_TYPE" == virtualbox* ]]; then
# fix bug to enable nm-dispatcher on Fedora 19 https://bugzilla.redhat.com/show_bug.cgi?id=974811
if [[ $(rpm -q --queryformat '%{VERSION}\n' fedora-release) == 19 ]]; then
yum -y upgrade NetworkManager
systemctl enable NetworkManager-dispatcher.service
fi

## https://access.redhat.com/site/solutions/58625 (subscription required)
# add 'single-request-reopen' so it is included when /etc/resolv.conf is generated
Expand All @@ -14,7 +9,7 @@ if [[ "$PACKER_BUILDER_TYPE" == virtualbox* ]]; then
echo "options single-request-reopen" >> /etc/resolv.conf
EOF
chmod +x /etc/NetworkManager/dispatcher.d/fix-slow-dns
service NetworkManager restart
systemctl restart NetworkManager.service
echo 'Slow DNS fix applied (single-request-reopen)'
else
echo 'Slow DNS fix not required for this platform, skipping'
Expand Down

0 comments on commit 191c899

Please sign in to comment.