Commit graph

208 commits

Author SHA1 Message Date
Nicolas Iooss
0cc8902d9c
Merge pull request #83 from fishilico/start-systemd-resolved
Start systemd-resolved automatically
2025-10-22 22:06:51 +02:00
Nicolas Iooss
dbf58a2a45
Merge pull request #82 from fishilico/increase-mem-1024
Use 1GB memory when installing Arch Linux ISO
2025-10-22 22:06:30 +02:00
Nicolas Iooss
a8dac33353
Merge pull request #81 from fishilico/use-openssl-passwd-6
Use `openssl passwd -6` instead of `-crypt`
2025-10-22 22:06:11 +02:00
Nicolas Iooss
234fdeef49 Start systemd-resolved automatically
When dhcpcd receives a DHCP lease, it tries to configure the DNS servers
through a D-Bus call to systemd-resolved, which currently fails. Fix
this by enabling the relevant systemd unit.
2025-10-03 16:18:21 +00:00
Nicolas Iooss
183c425947 Use 1GB memory when installing Arch Linux ISO
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.
2025-10-03 15:55:23 +00:00
Nicolas Iooss
27fa924f05 Use openssl passwd -6 instead of -crypt
OpenSSL 3.0 removed option `-crypt`. Use `-6` as this option seems
unlikely to be removed soon.

While at it, quote shell variables in a safe way to prevent issues when
they contain space characters.

Fixes: https://github.com/elasticdog/packer-arch/issues/80
2025-10-03 15:49:14 +00:00
Nicolas Iooss
9019e7568e
Merge pull request #79 from JuliusLongmind/master
Fixed some small bugs
2025-10-03 16:14:19 +02:00
JuliusLongmind
b14e836238
Checksum links has been fixed 2022-10-03 20:58:09 +02:00
JuliusLongmind
d109efdedf
Merge branch 'elasticdog:master' into master 2022-09-29 14:16:52 +02:00
JuliusLongmind
4dbd460443
The wrapper and the template has been fixed 2022-09-15 01:07:10 +02:00
JuliusLongmind
ed6856b815 Fixing mirrorlist, network interfaces before reboot 2022-06-11 07:36:39 -07:00
JuliusLongmind
6c421cd033
Fixing mirrorlist, network interfaces before reboot 2022-06-10 22:33:21 +02:00
Hiroshi Hatake
c7a37bcd18 Change vagrant user pasword with passwd explicitly
Signed-off-by: Hiroshi Hatake <cosmo0920.oucc@gmail.com>
2021-11-05 07:22:22 -07:00
Hiroshi Hatake
6f332c96cb
Merge pull request #72 from elasticdog/use-new-archlinux-mirrorlist-url
Remove www prefix for ArchLinux  mirror list generator URL
2020-12-30 20:15:39 +09:00
Hiroshi Hatake
522933af14 Remove www prefix for ArchLinux mirror list generator URL
Signed-off-by: Hiroshi Hatake <cosmo0920.oucc@gmail.com>
2020-12-28 22:02:36 +09:00
Hiroshi Hatake
a074cd7cc6 Use URL#id form for turning network intarfece note's URL
Handling Reboots section has #id.
So, we should use #id to point unique location.

Signed-off-by: Hiroshi Hatake <cosmo0920.oucc@gmail.com>
2020-12-28 21:58:37 +09:00
Hiroshi Hatake
6730cb16a4
Merge pull request #68 from MafiaInc/master
Turn network interfaces down before restart
2020-12-28 21:57:28 +09: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
Christian Kotte
5a93a04295 Update network configuration
Use systemctl command instead of manually symlinking. Add more
information about systemd Predictable Network Interface Names.
2020-08-13 15:53:08 -07:00
Christian Kotte
16cfbbd2e5 Move pacman mirror config just before package installation 2020-08-13 15:53:08 -07:00
Christian Kotte
090a1cb9a6 Improve script output
The '==>' prefix is used by pacstrap, pacman, and mkinitcpio. A new
prefix is needed to better differentiate the output of the script from
the output of the programs mentioned above.
Also adding more output to the different steps helps during troubleshooting.
2020-08-13 15:53:08 -07:00
Christian Kotte
d52ce407d4 Add Vagrantfile and exclude .vagrant
Quickly test the box after creation to discover errors like missing
netctl. Better test the box in this project then in another project
that uses the box.
2020-08-13 15:53:08 -07:00
Christian Kotte
73cd66e492 Use output* in .gitignore
The folder output-virtualbox-iso will be created during box
configuration with VirtualBox.
2020-08-13 15:53:08 -07:00
Christian Kotte
213190a00d Remove VirtualBox module loading
The modules will be loaded automatically when vboxservice.service starts
2020-08-13 15:53:08 -07:00
Christian Kotte
0f137664aa Fix VirtualBox Guest Additions installation
- virtualbox-guest-modules-arch doesn't exist anymore and the installation
will fail.
- virtualbox-guest-utils was replaced by virtualbox-guest-utils-nox
because Xorg isn't used.
- linux-headers removed because it's not needed by virtualbox-guest-utils
2020-08-13 15:53:08 -07:00
Christian Kotte
8b1e489ff9 Update automation tools in documentation
Just because I use Ansible with Vagrant ;)
2020-08-13 15:53:08 -07:00
Christian Kotte
8fc98c876b Update documentation with base meta package 2020-08-13 15:53:08 -07:00
Christian Kotte
c5f85d09f3 Add linux, dhcpcd, and netctl to the base installation
The base group was changed to a base meta package and many packages were
removed: https://www.archlinux.org/news/base-group-replaced-by-mandatory-base-package-manual-intervention-required/

Therefore, it's necessary to add linux or linux-lts to install a Kernel.
Dhcpcd is needed to get an IP after the first reboot. Netctl is needed later when
using Vagrant.
2020-08-13 15:53:08 -07:00
Christian Kotte
072de4ba94 Remove hard tabs from install-base.sh
It's best practice to use soft tabs instead of hard tabs.
2020-08-13 15:53:08 -07:00
Christian Kotte
1225f6f1ee Add configured vCPUs
Just for completeness. One vCPU is the default anyway.
2020-08-13 15:53:08 -07:00
Christian Kotte
e96dd97f3d Increase memory from 512 to 768
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.
2020-08-13 15:53:08 -07:00
Hiroshi Hatake
b416b18bec
Merge pull request #69 from mxl/packer-fix
iso_checksum_url and iso_checksum_type are deprecated in favor of iso_checksum.
2020-07-09 14:51:28 +09:00
Michael Ledin
f2cbd420c3 Run packer fix 2020-07-08 12:55:39 +03:00
81bb3a703c Turn network interfaces down before restart
Turning network interfaces down to make sure SSH session was dropped
  on host side.
  More info [here](https://www.packer.io/docs/provisioners/shell.html#handling-reboots)
2019-07-30 20:12:49 +03:00
Boris-Chengbiao Zhou
ce539e2e6d Add workaround for slow CRNG initialization 2019-07-19 14:54:54 -07:00
appleby
b17c41b0c1
Merge pull request #65 from elcascador62/master
Update README packer build command to pass -only=qemu not -only=libvirt
2019-05-13 10:28:22 -05:00
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