#!/bin/bash
echo bar > /foo
mkdir -p ~core/.ssh
cat <<EOF >> ~core/.ssh/authorized_keys
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCcSRW19vYRyTgW1sNF0OMNmXdZLPZwYF/+xu+5fcBy38dYhKuv6Nler7RE/eF9g1dwpVmGiV5282lms6o8j6qpd8TD/Y3JN1LrsxEr0atkU7TfUToUnxKN0W38HEXEsETIl9astWl8eJQ/iAdTjCkjc6p1Qe4dUW/Ce+Ob0iWu7dnowoI5A05fikCUVxzpKbbu7bVq/GgSwqt4dKCUbKlghMxuablLgWsEyxOGWS8gQ/+3F7etIidu+pkXvK3i6oOXYT3WZ5vCHtGrLsu0yRPdZBghKW/G6h8IuI7CoWt6QhBTJGp27TsmNNQY/vtVyCXdOwg8j7GX2hUpUepxoy1T core@default
EOF
chown -R core.core ~core/.ssh
chmod 700 ~core/.ssh
chmod 600 ~core/.ssh/authorized_keys
cat <<EOF > /etc/flatcar/update.conf
SERVER=disabled

EOF
chmod 644 /etc/flatcar/update.conf
