2022-12-06 15:44:25 +01:00
|
|
|
#!/bin/sh
|
|
|
|
set -xeo pipefail
|
|
|
|
|
|
|
|
# Run the installer
|
2022-12-28 09:51:38 +01:00
|
|
|
yes | setup-alpine -e -f install.conf
|
2022-12-06 15:44:25 +01:00
|
|
|
|
|
|
|
# Copy ssh keys
|
|
|
|
echo "Copy packer ssh key"
|
|
|
|
mount /dev/vg0/lv_root /mnt
|
|
|
|
cp -rp .ssh /mnt/root/
|
|
|
|
sync
|
|
|
|
umount /mnt
|
|
|
|
|
2022-12-28 09:51:38 +01:00
|
|
|
apk update
|
2023-01-04 11:47:18 +01:00
|
|
|
apk add curl jq
|
2022-12-28 09:51:38 +01:00
|
|
|
|
2022-12-06 15:44:25 +01:00
|
|
|
echo "Rebooting the host after install"
|
2023-01-04 14:27:39 +01:00
|
|
|
reboot -nf
|