1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/dist/tools/packer/scripts/vagrant.sh
Alexandre Abadie 562cc9007c
tools/packer: adapt for Ubuntu 18.04
This change is also a complete refactoring of the generation of the vagrant image
2020-02-19 19:23:07 +01:00

11 lines
389 B
Bash

date > /etc/vagrant_box_build_time
mkdir /home/${SSH_USERNAME}/.ssh
wget --no-check-certificate \
'https://raw.githubusercontent.com/hashicorp/vagrant/master/keys/vagrant.pub' \
-O /home/${SSH_USERNAME}/.ssh/authorized_keys
chown -R user /home/${SSH_USERNAME}/.ssh
chmod -R go-rwsx /home/${SSH_USERNAME}/.ssh
# Create SSH key pair
yes y | ssh-keygen -t rsa -N '' -f ~/.ssh/id_rsa