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

16 lines
258 B
Bash
Raw Normal View History

2022-12-06 15:44:25 +01:00
#!/bin/sh
#set -xeo pipefail
# Run the installer
2023-10-11 09:29:46 +02:00
yes | setup-alpine -e -f /root/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-06 15:44:25 +01:00
echo "Rebooting the host after install"
reboot -nf