Booting the Arch Linux ISO nowadays requires at least 955 MB of memory
(from running `free -m` after booting it in VirtualBox).
When the virtual machine only has 768 MB of RAM, extracting the initrd
fails and the provisioning script aborts.
Increase the memory to 1024 MB to fix this.
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.
The Arch Linux installation ISO cannot be booted with 512MB (default).
It needs to be increased to 768MB. Only tested with VirtualBox, most
probably it's the same with every hypervisor.
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.
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
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.
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.
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.
This reverts commit d93e04754a.
August 2016 ISO image could not boot with `Failed to load ldlinux.c32`
message.
We should revert this change.
Fixes#49.
Arch publishes the checksums of the ISO urls and Packer has an option to
read these files directly from the source.
This commit will automatically load the ISO checksums from the provided
URL, making it such that each month only 1 line must be changed.