Commit graph

171 commits

Author SHA1 Message Date
elcascador62
11b6da29ba
Update README.md 2019-04-29 21:14:23 +02:00
Aaron Bull Schaefer
733d5d524b
Merge pull request #62 from appleby/appleby-arch-packer-bin-rename
Fix a handful of spooky wrapacker bugs
2018-10-31 17:59:19 +00:00
Mike Appleby
e54e34cda1 Check for existence of packer-io command before setting PACKER_BIN
In older versions of arch linux, the hashicorp packer package (and
binary) was named packer-io to avoid clashing with a pre-existing AUR
helper called packer. Recently, the AUR helper package was renamed to
packer-aur and the old packer-io (and corresponding binary) was
renamed to packer.

https://www.archlinux.org/packages/community/x86_64/packer/

Previously, the wrapacker script would unconditionally set PACKER_BIN
to "packer-io" if the file /etc/arch-release existed. We now instead
the check for the existence of a packer-io command, and fall back to
the default "packer" in case that doesn't exist.
2018-10-30 16:43:35 -06:00
Mike Appleby
1e25ccf7c6 Tell curl to follow redirects when fetching ISO_CHECKSUM_URL
mirrors.kernel.org is redirecting to mirrors.edge.kernel.org, causing
ISO_NAME to be set to an empty string. This resulted in ISO_URL being
set to the wrong value and packer failing to download the iso.
2018-10-30 16:31:57 -06:00
Mike Appleby
2a522c91c4 Don't call pacman-optimize in cleanup.sh
The pacman-optimize script has been removed from pacman.

https://git.archlinux.org/pacman.git/commit/?id=d590a45795b30a14cdb697754749c85907053570

This was causing the installer to complain "/usr/bin/pacman-optimize:
No such file or directory".
2018-10-30 16:28:00 -06:00
Aaron Bull Schaefer
72922ed830
Merge pull request #60 from jcf/install-open-vm-tools
Install Open VM Tools
2018-10-28 16:58:21 +00:00
Aaron Bull Schaefer
2ac568186c
Merge pull request #61 from tomswartz07/iso_fix
Use Packer Template feature to auto-populate ISOs
2018-10-03 16:17:25 -07:00
Tom Swartz
af9c4ce9af Use same format for output box name 2018-10-03 17:33:12 -04:00
Tom Swartz
f235e7b55b Use Packer Template feature to auto-populate ISOs
Packer template variables allow for dynamic integration of isodate
variables.
This commit leverages the isotime template engine to auto generate
the year and month values for the ISO url as well as the SHA checksum
fields.

This will allow for the ISO image to continuously remain up-to-date
without the need for continued monthly commits.

Additionally, it leverages this same template variable to ensure that
the resulting box filename matches the date it was created, for archival
purposes.
2018-10-02 19:05:30 -04:00
Tom Swartz
682c800dc8 Update to October 2018 ISO 2018-10-02 18:52:03 -04:00
James Conroy-Finn
6311877e6f Install VMware's Open VM Tools 2018-09-30 18:35:07 +01:00
Hiroshi Hatake
572b2d8c88 Update to September 2018 ISO 2018-09-02 13:25:20 +09:00
Hiroshi Hatake
1356679463 Update to August 2018 ISO 2018-08-03 13:47:16 +09:00
Hiroshi Hatake
7ecceb87ab Update to July 2018 ISO 2018-07-01 14:15:51 +09:00
Hiroshi Hatake
ba9d7bd90c Update to June 2018 ISO 2018-06-17 12:42:28 +09:00
Hiroshi Hatake
0a3608d569 Update to May 2018 ISO 2018-05-07 11:38:33 +09:00
Hiroshi Hatake
5088253a45 Update to March 2018 ISO 2018-03-16 14:06:03 +09:00
Hiroshi Hatake
d83848372a Revert "Update to May 2018 ISO"
This reverts commit ac0604c36a.
2018-03-16 14:05:42 +09:00
Hiroshi Hatake
ac0604c36a Update to May 2018 ISO 2018-03-02 12:08:33 +09:00
Nicolas Iooss
9bd828456d Merge pull request #59 from deathbeam/patch-1
Set expect_disconnect to "true" to fix build
2017-10-22 11:30:09 +02:00
Tomas Slusny
61dab773a1 Set expect_disconnect to "true" to fix build
Based on https://www.packer.io/docs/provisioners/shell.html#expect_disconnect and local test, expect_disconnect in shell provisioner is not true by default anymore, so when install-base tries to reboot machine, installation fails.
2017-10-19 17:26:58 +02:00
Tom Swartz
0522b12f9e Update ISO for Oct 2017 2017-10-02 11:56:46 -04:00
Hiroshi Hatake
b712096688 Update to September 2017 ISO 2017-09-16 16:29:06 +09:00
Hiroshi Hatake
f185199e1e Update to July 2017 ISO 2017-07-02 19:20:39 +09:00
Hiroshi Hatake
d14b3bea35 Update to June 2017 ISO 2017-06-05 10:56:50 +09:00
Tom Swartz
eecb5a7b4a Update to May 2017 ISO 2017-05-02 08:56:57 -04:00
Tom Swartz
02f2f5ea07 Merge pull request #58 from tomaspapan/master
Fix wrapper download iso url and update to April 2017 ISO
2017-04-12 08:38:32 -04:00
Tomas Papan
68e0c0d409
Update to April 2017 ISO 2017-04-12 10:05:30 +02:00
Tomas Papan
4915e58199
Fix wrapper download iso url
It seems the archlinux dropped support for dual iso.
According the official mirror (and many other which I have checked)
there is only -x86_64.iso file.
You can see it here: https://mirrors.kernel.org/archlinux/iso/latest/
This fix will ensure that the correct signature is read when the image
is parsed in sha1sum.txt file.
2017-04-12 09:53:58 +02:00
Tom Swartz
ee0e88f7c9 Update to March 2017 ISO 2017-03-06 10:01:57 -05:00
Michael Ledin
bb83901361 Add "headless" variable for vmware and qemu. 2017-03-05 09:56:31 -08:00
Aaron Bull Schaefer
f06bdf5359 Bump the Copyright date range to include 2017 2017-01-23 16:36:04 -08:00
Aaron Bull Schaefer
dc7fb0cdc8 Change boot wait time to 40 seconds
This splits the difference between 60 seconds (from [1]) and the
previous 20 seconds, which is no longer enough time to boot cleanly...

@tomswartz07, @mod, and I have all been experiencing mid-20 second boot
times, so 40 seconds seems like enough headroom without being excessive.

[1]: 443997f28c
2017-01-23 16:17:27 -08:00
Louis Bellet
e4bcd86a63 Fixing Guest Virtualbox tools
Archlinux wiki suggest for linux kernel using virtualbox-host-modules-arch
2017-01-23 15:40:03 -08:00
Tom Swartz
443997f28c January 2017 ISO + Boot Timeout increase
Update to Jan 2017 ISO (Happy New Year!)

It appears that the ISO startup boot time is slightly longer, recently.
Increase timeout before typing boot commands, to prevent initial parts
of the enable-ssh script from being cut off.
2017-01-09 09:22:45 -05:00
Tomas Papan
e628cd76a3 Add headless option into wrapacker script
Only works with virtualbox provider.
2016-11-20 11:14:50 -08:00
Aaron Bull Schaefer
341a989fab Accept "qemu" as a valid input for the --provider
The nomenclature used with wrapacker is a bit of a mixture between the
Packer "builder" used and the Vagrant "provider" that will eventually
launch the resulting image that it creates. This tries to be a bit more
liberal with the input that will be accepted for that option.
2016-11-18 12:10:00 -08:00
Aaron Bull Schaefer
45fe1a10d0 Tweak formatting for consistency with project conventions
Just to have the style match across all files in the project.
2016-11-18 12:08:30 -08:00
Attila Bogar
227f42add6 use bash syntax 2016-11-18 11:34:56 -08:00
Attila Bogar
3f2ac7e735 libvirt + country mirror support in box 2016-11-18 11:34:56 -08:00
Aaron Bull Schaefer
74f33dc4fe Add SSH user with User Private Groups by default
Related to #53
2016-11-13 10:32:23 -08:00
Nicolas Iooss
322ec10c43 Create vagrant user in vagrant group
The Vagrant documentation for option "group" in syncing folders states
(in https://www.vagrantup.com/docs/synced-folders/basic_usage.html#group):
"By default this will be the SSH user". Vagrant indeed tries to change
the owner and group of synchronized files to vagrant:vagrant (not
vagrant:users). It outputs:

    The following SSH command responded with a non-zero exit status.
    Vagrant assumes that this means the command failed!

    find /vagrant '!' -type l -a '(' ! -user vagrant -or ! -group vagrant
    ')' -exec chown vagrant:vagrant '{}' +

    Stdout from the command:

    Stderr from the command:

    find: 'vagrant' is not the name of an existing group

Fix this by using --user-group instead of --gid users in the useradd
command which creates user vagrant.
2016-11-13 10:29:12 -08:00
Tom Swartz
8f208034ed Rename SSH Setup Script
Change name of SSH setup script to reflect actions
Remove unnecessary SSH key setup in pre-install environment
2016-11-07 17:53:19 -08:00
Tom Swartz
455dc90842 Move Provisioning to STDOUT
Previously, there was an issue with mkfs failing due to a missing
options flag; this error was difficult to catch, as it was only output
in the provisioned OS's virtual machine file.

This change moves the base installation steps to be more in line with
the other provisioning steps, and allows for any errors, issues, or
output to be cached in the logs of the interface running the Packer
build.
2016-11-07 17:53:19 -08:00
Aaron Bull Schaefer
3e29bceab3 Fix missed date reference in the iso_url update 2016-11-07 15:09:35 -08:00
Aaron Bull Schaefer
31d34f357e Update to November 2016 ISO 2016-11-07 14:34:07 -08:00
Aaron Bull Schaefer
aed4423b97 Fix ISO checksum URL override in wrapper script
Resolves #52
2016-11-07 14:22:34 -08:00
Tom Swartz
5dd890c2fa Update to October 2016 ISO
Happy Hacktoberfest
2016-10-17 10:47:55 -04:00
Tom Swartz
8dde72a376 Update to September 2016 ISO 2016-09-14 14:40:51 -04:00
Tom Swartz
a7ff9f2e78 Update to Aug 2016 ISO and fix EXT4 issue
Version 1.43 of e2fsprogs changes mkfs to default 64bit.
This doesn't play nicely with Syslinux, so disable it.

We wouldn't need 64bit filesystems unless we're working with 16TiB
filesystems.
2016-08-10 11:13:27 -04:00