vms/recipes/alpine/provisionning/alpine-3.16-install.sh

19 lines
272 B
Bash

#!/bin/sh
set -xeo pipefail
# Run the installer
yes | setup-alpine -e -f install.conf
# Copy ssh keys
echo "Copy packer ssh key"
mount /dev/vg0/lv_root /mnt
cp -rp .ssh /mnt/root/
sync
umount /mnt
apk update
apk add curl
echo "Rebooting the host after install"
reboot