Commit graph

10 commits

Author SHA1 Message Date
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
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
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
Aaron Bull Schaefer
74f33dc4fe Add SSH user with User Private Groups by default
Related to #53
2016-11-13 10:32:23 -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
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
Aaron Bull Schaefer
266dd4ea6c Remove duplicated pacman cleanup step
This gets run as the final step with all builders after the machine
reboots, so no need to do that twice.
2016-02-12 07:40:18 -08:00
Aaron Bull Schaefer
d5adbc3f10 Remove duplication in installation scripts
Instead of having mostly duplicate scripts for the entire installation
process, we can split them up into the base installation steps and then
run shell provisioners for anything specific to each of the types after
the machine has rebooted.

This structure will mean less chance of error when making changes to
machines, and will also allow for expansion of the scripts to be run at
the end, such as adding a minimization script to remove history and
clear out space on the drive before compression.
2016-02-08 09:27:41 -08:00
Aaron Bull Schaefer
f12cd0ad29 Move the HTTP server files into a dedicated directory
Again, this is to tidy up the top-level directory in preparation for
de-duplicating the script functionality.
2016-02-07 20:44:27 -08:00