Commit graph

19 commits

Author SHA1 Message Date
JuliusLongmind
b14e836238
Checksum links has been fixed 2022-10-03 20:58:09 +02:00
JuliusLongmind
4dbd460443
The wrapper and the template has been fixed 2022-09-15 01:07:10 +02:00
JuliusLongmind
6c421cd033
Fixing mirrorlist, network interfaces before reboot 2022-06-10 22:33:21 +02:00
Christian Kotte
c1125dc9b8 Add variable/option to control if zeros are written to the disk
It takes some time to write zeros to the disk and it aborts later if
less than 20GB are available.

Add variable to the template, cleanup script and add a new option to
wrapacker.
2020-08-13 15:53:08 -07:00
Christian Kotte
b8ea7c03d4 Add debugging options to wrapper
The options on-error and force are needed for debugging the box
creation.
Also replace all hard tabs with soft tabs.
2020-08-13 15:53:08 -07: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
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
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
Attila Bogar
3f2ac7e735 libvirt + country mirror support in box 2016-11-18 11:34:56 -08:00
Aaron Bull Schaefer
aed4423b97 Fix ISO checksum URL override in wrapper script
Resolves #52
2016-11-07 14:22:34 -08:00
Aaron Bull Schaefer
5f260621b7 Ensure the help documentation matches available options
Minor reorganization here so the --dry-run option is listed at the end,
and we document that the --timeout option takes an argument. I had also
missed showing the `[-d]` option on the usage message previously.
2016-01-03 11:03:59 -08:00
Aaron Bull Schaefer
20d7048975 Ensure we actually use a 20m timeout as the default
I also slightly re-organized how the default was set, so it will always
rely on the status of the $timeout variable and also the final variable
name matches the name of the Packer option.
2016-01-03 11:02:42 -08:00
Hiroshi Hatake
2464bd2c31 Add timeout option to specify ssh_timeout via wrapacker
Closes #40
Fixes #8
2016-01-01 11:10:59 +09:00
Aaron Bull Schaefer
03abd01c9a Use the correct binary if running Packer from Arch Linux
Resolves #39
2015-12-30 13:58:28 -08:00
Aaron Bull Schaefer
305ab6eda5 Set the VALID_COUNTRIES constant to be read-only 2015-12-30 13:55:10 -08:00
Aaron Bull Schaefer
28fd41e134 Quote the rhs of == in [[ ]] to prevent glob matching.
[SC2053]
2015-12-30 13:51:36 -08:00
Aaron Bull Schaefer
612cfee4cf Add initial wrapacker script
This does not yet call the actual `packer build` command, but it does
grab the metadata correctly. I'll have to change up the option flag
parsing to include the provider type, then it can just call the complete
command rather than passing options through.
2015-10-18 11:06:48 -07:00