#!/bin/bash
echo bar > /foo
mkdir -p ~core/.ssh
cat <<EOF >> ~core/.ssh/authorized_keys
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDn7ju8Mbm/ZXsJ9Ax073kSE2q1jE78VeZNjFsvKEB1RGJ33m0GehCmPyD6eOQhvQuSL6sBBVqyauTPl7FRkv5lL+EYe19f6aVonCYlBDUKpIgWmG3JPT1ODATncVZfvdtTcnMuFofA6B36W65AWzjBtfgwTwRfJFMH40r8o55v3oaQYadfBGmnycvv8/9KSF5M+zTa4eaC03LJll2l/my7FsytGnlhd6P69AjgLD/YwspDkg///p0UmVUJM410Xqmw5iLp7BEjlnLsNles5jysjTeyoGP5Vx0mLI2pg5Gr+DhhLHF9R83s33FiER87urqtEUbecqDebloXofDHPdlH 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
